Skip to content

A Delay Across the Fall-Back

  • Legs, dwell, cut-offs and punctuality, shared by road, rail, sea and air.

A Delay Across the Fall-Back

A train is due in Sydney at 02:30 AEDT on Sunday 7 April 2024. At 03:00 the clocks go back to 02:00, and the train arrives at 02:30 AEST. How late was it?

The naive approach

// The naive approach: subtract the times on the arrivals board
const minutes = (hhmm) => { const [h, m] = hhmm.split(":").map(Number); return h * 60 + m; };
minutes("02:30") - minutes("02:30"); // 0 — "on time", across the fall-back
minutes("03:30") - minutes("01:30"); // 120 — "two hours late", across the spring-forward

Watch it break

The naive approach silently produces wrong results — there is no GMT equivalent to demonstrate because the failure is not using GMT.

Why

A wall-clock subtraction assumes every hour on the clock happened once. On a fall-back night 02:00 to 03:00 happens twice, so the same printed 02:30 names two instants an hour apart. On a spring-forward night 02:00 to 03:00 never happens. `scheduleDeviation` subtracts instants, so the delay is 60 minutes both times, and `classifyPunctuality` judges that against your tolerance.

The gmt approach

import { classifyPunctuality, scheduleDeviation } from "@northguild/gmt/transport";

scheduleDeviation("2024-04-07T02:30:00+11:00", "2024-04-07T02:30:00+10:00");
// "PT1H" — the second 02:30 is an hour after the first
classifyPunctuality("2024-04-07T02:30:00+11:00", "2024-04-07T02:30:00+10:00", { late: "PT15M" });
// "late"
scheduleDeviation("2024-10-06T01:30:00+10:00", "2024-10-06T03:30:00+11:00");
// "PT1H" — 03:30 AEDT is an hour after 01:30 AEST

Same widget, working

output 

The Punctuality Board holds the same night in Sydney. Open the fall-back night: read off the wall clocks, 3 of 4 trains are on time under a 15-minute tolerance; measured, 1 of 4 is. The rules are in Transport: Punctuality and Timestamps.

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.