Method Deck / timezones
Computes elapsed travel time from a departure local date/time/offset to an arrival local date/time/offset.
None.
| Name | Inputs | Answer |
|---|---|---|
| worked example | {"departure_date":"2026-09-30","departure_time":"08:00:00","departure_offset":"-05:00","arrival_date":"2026-09-30","arrival_time":"21:35:00","arrival_offset":"+01:00"} | 7h 35m |
| test vector: overnight, crosses a calendar date | {"departure_date":"2026-03-01","departure_time":"22:00:00","departure_offset":"-05:00","arrival_date":"2026-03-02","arrival_time":"11:30:00","arrival_offset":"+01:00"} | 7h 30m |
| test vector: both local times identical but different offsets | {"departure_date":"2026-05-01","departure_time":"09:00:00","departure_offset":"+09:00","arrival_date":"2026-05-01","arrival_time":"09:00:00","arrival_offset":"-08:00"} | 17h 0m |
1a135c4eaff94ccb876a7f71fc5a357d2026-09-30T22:39:30.722Zbac6ae55771be31f50c744cb731431c2f7319b904ab49f1dbf900d6d29fa14b2