# Scenarios

Industry: Core, Workforce, Transport, Intermodal, GNSS, Finance, Healthcare, Aviation, Rail, IoT

## A 203 Read as UTC

A terminal timestamp sent with format code 203, stored as a UTC instant the message never stated.

- [A 203 Read as UTC](/gmt/scenarios/a-203-read-as-utc/)

## A 29 February Birthday in a Common Year

Someone was born on 29 February 2000. Find their birthday in 2023 without moving the day by accident.

- [A 29 February Birthday in a Common Year](/gmt/scenarios/a-29-february-birthday-in-a-common-year/)

## A FHIR Month Padded to Midnight

A FHIR date sent as a month, turned into a midnight instant, so a range check counts the whole month as its first moment.

- [A FHIR Month Padded to Midnight](/gmt/scenarios/a-fhir-month-padded-to-midnight/)

## A GTFS Time Folded into One Day

A feed import folds 25:35:00 into 01:35:00, and a night trip's last stops move to the start of its service day.

- [A GTFS Time Folded into One Day](/gmt/scenarios/a-gtfs-time-folded-into-one-day/)

## A GTFS Trip Anchored at Midnight

A feed import adds each stop time to local midnight, and on the day the clocks go forward every stop of that service day shows an hour late.

- [A GTFS Trip Anchored at Midnight](/gmt/scenarios/a-gtfs-trip-anchored-at-midnight/)

## A Leap Second That Never Happened

A log line reads 2017-12-31T23:59:60Z, a pattern check accepts it, and no second was inserted that day.

- [A Leap Second That Never Happened](/gmt/scenarios/a-leap-second-that-never-happened/)

## A METAR from Last Month

A report received at 00:05 on 1 July carries 302350Z, and a reader that assumes the current month puts it 30 days ahead.

- [A METAR from Last Month](/gmt/scenarios/a-metar-from-last-month/)

## A Millisecond Stamp Read as Nanoseconds

A FIX stamp with three fraction digits goes through an ISO conversion and comes out with nine, and the extra six were never measured.

- [A Millisecond Stamp Read as Nanoseconds](/gmt/scenarios/a-millisecond-stamp-read-as-nanoseconds/)

## A PTP Stamp 37 Seconds Ahead

An ingest job stores a lidar's PTP seconds as Unix time, and every frame sits 37 seconds ahead of the camera's.

- [A PTP Stamp 37 Seconds Ahead](/gmt/scenarios/a-ptp-stamp-37-seconds-ahead/)

## A TS Date Read as a Time

An older HL7 time stamp whose degree of precision says month, read as noon on the first of April.

- [A TS Date Read as a Time](/gmt/scenarios/a-ts-date-read-as-a-time/)

## A Value Date in the Wrong Century

A ten-year swap leg settles on a value date sent as 350615, and a home-made century cut-off stores 1935 instead of 2035.

- [A Value Date in the Wrong Century](/gmt/scenarios/a-value-date-in-the-wrong-century/)

## An HL7 Time Read as UTC

A lab observation time sent as an HL7 date-time with no offset, stored as a UTC instant the message never stated.

- [An HL7 Time Read as UTC](/gmt/scenarios/an-hl7-time-read-as-utc/)

## An SSIM Month Read in the Wrong Language

A schedule import runs on a server set to Spanish, and a parser that reads month names through the locale rejects 01JAN26 and accepts 01ENE26.

- [An SSIM Month Read in the Wrong Language](/gmt/scenarios/an-ssim-month-read-in-the-wrong-language/)

## Two Arrivals, One Wall Time: The Fall-Back Night

Two flights land in London an hour apart on the night clocks fall back, and the arrivals board shows 01:30 for both.

- [Two Arrivals, One Wall Time: The Fall-Back Night](/gmt/scenarios/arrival-on-a-fall-back-night/)

## A B/L Dated a Day Late

Cargo loaded at 21:00 in São Paulo, and a bill of lading dated the next day because the date was read in UTC.

- [A B/L Dated a Day Late](/gmt/scenarios/bill-of-lading-dated-a-day-late/)

## A Connection Missed at the Spring-Forward Handoff

A truck reaches the London port the morning clocks spring forward. An offset table says the ship connection holds with 30 minutes to spare. It is missed by 30 minutes.

- [A Connection Missed at the Spring-Forward Handoff](/gmt/scenarios/connection-missed-at-spring-forward/)

## Container Dwell: Two Hours, Two Days

A container gates in at 23:00 and out at 01:00. The terminal charges two days, and dividing hours by 24 says one.

- [Container Dwell: Two Hours, Two Days](/gmt/scenarios/container-dwell-days/)

## A Delay Across the Fall-Back

A train due at 02:30 on the night Sydney's clocks go back arrives at 02:30 by the station clock, an hour later. Subtracting the clocks says it was on time.

- [A Delay Across the Fall-Back](/gmt/scenarios/delay-across-fall-back/)

## Demurrage Across a Weekend

The same container gates out on Monday morning. Whether that is zero chargeable days or one turns on a second, and chargedDates names the date.

- [Demurrage Across a Weekend](/gmt/scenarios/demurrage-across-a-weekend/)

## Detention Is Not Demurrage

A container's four events, and a detention invoice counted from the wrong one. The detention clock starts at gate-out, not at discharge.

- [Detention Is Not Demurrage](/gmt/scenarios/detention-is-not-demurrage/)

## A Dispute Window from a Contract

A service contract gives 14 days to dispute. Code that hard-codes 30 gives the wrong deadline.

- [A Dispute Window from a Contract](/gmt/scenarios/dispute-window-from-a-contract/)

## The Duty Day Is Not Midnight

An operator's day starts at 04:00 in São Paulo. Grouping a driver's log by local midnight puts a 03:30 entry in the wrong day, and an entry logged in Tokyo in the wrong day again.

- [The Duty Day Is Not Midnight](/gmt/scenarios/duty-day-is-not-midnight/)

## An Estimate Shown as the Actual

A vessel berthed at 12:52. An hour later a late feed delivered an estimate of 13:05, and the dashboard's Actual column now says 13:05.

- [An Estimate Shown as the Actual](/gmt/scenarios/estimate-shown-as-actual/)

## ET Is Not an Offset

An X12 status time with time code ET, given a fixed offset from a lookup table and an hour out for most of the year.

- [ET Is Not an Offset](/gmt/scenarios/et-is-not-an-offset/)

## An ETA That Forgot the Sailing

A truck, ship and rail move whose ETA adds up every duration and dwell, and lands 20 hours early because the ship sails on its schedule.

- [An ETA That Forgot the Sailing](/gmt/scenarios/eta-that-forgot-the-sailing/)

## A Filing Deadline Anchored to the Wrong Event

A rule says 24 hours before loading. The system counts 24 hours before departure, which is two and a half days later, and every filing it schedules is late.

- [A Filing Deadline Anchored to the Wrong Event](/gmt/scenarios/filing-anchored-to-the-wrong-event/)

## Free Time: Which Day Is Day One

A container is discharged on Friday afternoon with three free days. Adding 72 hours says Monday afternoon; the tariff says Monday 00:00 or Tuesday 00:00, and nothing in between.

- [Free Time: Which Day Is Day One](/gmt/scenarios/free-time-start-day/)

## A Fixed Gap Applied to an Old Log

A log from June 2016 is converted with today's gap between Galileo time and UTC, and every line is a second off.

- [A Fixed Gap Applied to an Old Log](/gmt/scenarios/gnss-offset-hardcoded/)

## The Week That Wrapped

A receiver reports week 247, and the log reads it as a date in 1984.

- [The Week That Wrapped](/gmt/scenarios/gnss-week-that-wrapped/)

## Invoice a Day Late

An invoice issued on day 30 of a 30-day window, flagged as a day late by millisecond arithmetic.

- [Invoice a Day Late](/gmt/scenarios/invoice-a-day-late/)

## Monthly Billing Without Drift

Charge on the same calendar date every month, not a fixed number of days.

- [Monthly Billing Without Drift](/gmt/scenarios/monthly-billing/)

## A Zoneless Arrow Column Read as UTC

A timestamp column with no timezone holds wall-clock time, and reading it as UTC invents an instant.

- [A Zoneless Arrow Column Read as UTC](/gmt/scenarios/naive-arrow-column-read-as-utc/)

## A Paired Rest That Does Not Qualify

Two rests may count as one when each is at least 2 hours, one at least 7 and both together at least 10. Checking two whole numbers passes 6 + 4 and fails 7.5 + 2.5 — both wrong.

- [A Paired Rest That Does Not Qualify](/gmt/scenarios/paired-rest-that-does-not-qualify/)

## PERM Read as a Date

A NOTAM ends in PERM, a parser turns it into 9999-12-31, and an "is it in force?" check is right until that day.

- [PERM Read as a Date](/gmt/scenarios/perm-read-as-a-date/)

## A Protobuf Timestamp Before 1970

Splitting a negative millisecond count with truncation writes a negative nanos field, which protobuf rejects.

- [A Protobuf Timestamp Before 1970](/gmt/scenarios/protobuf-timestamp-before-1970/)

## A Re-Bill Anchored on the Wrong Date

A party re-billing a charge it was itself billed counts its 30-day window from the charge, not from the invoice it received.

- [A Re-Bill Anchored on the Wrong Date](/gmt/scenarios/re-bill-anchored-on-the-wrong-date/)

## Recurring Meeting Across DST

Schedule a meeting that repeats weekly across a daylight saving time boundary.

- [Recurring Meeting Across DST](/gmt/scenarios/recurring-meeting-dst/)

## A RINEX Week Read as a Broadcast Week

A NavIC record in a RINEX navigation file shows week 2295, and the log reads it as the L1NV counter, 19 years out.

- [A RINEX Week Read as a Broadcast Week](/gmt/scenarios/rinex-week-read-as-broadcast/)

## Second Sixty on an Ordinary Day

A FIX stamp ends in :60 on a day with no leap second, the shape check passes, and Temporal stores it as a second that already happened.

- [Second Sixty on an Ordinary Day](/gmt/scenarios/second-sixty-on-an-ordinary-day/)

## A Sliding Window Is Not a Calendar Day

A rule asks for 10 hours of rest in any 24. Each calendar day of the log holds 10, so a per-day check passes, but the 24 hours ending at 06:00 hold 4.

- [A Sliding Window Is Not a Calendar Day](/gmt/scenarios/sliding-window-not-calendar-day/)

## A Snowflake Read With the Wrong Epoch

A Discord message ID is decoded with Twitter's epoch, and the date is four years early with no error.

- [A Snowflake Read With the Wrong Epoch](/gmt/scenarios/snowflake-from-the-wrong-epoch/)

## Storing a Birthday

Store a birthday so it stays correct across timezones and years.

- [Storing a Birthday](/gmt/scenarios/storing-birthday/)

## The EPCIS Offset Nobody Kept

An EPCIS event stored as its instant alone, and shown a day early at the site where it happened.

- [The EPCIS Offset Nobody Kept](/gmt/scenarios/the-epcis-offset-nobody-kept/)

## A 13-Bit Week Read as 10-Bit

A full week number of 2295 from a QZSS civil message is fed to the 10-bit counter, and the library refuses it.

- [A 13-Bit Week Read as 10-Bit](/gmt/scenarios/thirteen-bit-week-read-as-ten-bit/)

## A 26-Hour Rail Leg Across Spring-Forward

A train leaves at 20:00 the evening before clocks spring forward and runs for 26 hours. Adding to the wall clock puts it in a station an hour before it arrives.

- [A 26-Hour Rail Leg Across Spring-Forward](/gmt/scenarios/transit-across-dst/)

## Two Days Before Is Not 48 Hours

A documentation cut-off is 17:00 local two days before the vessel sails. Subtracting 48 hours from the departure puts it an hour late, and a DST weekend moves it again.

- [Two Days Before Is Not 48 Hours](/gmt/scenarios/two-days-before-is-not-48-hours/)
