Method Deck / timezones
Converts a single UTC date and time into local wall-clock times at three fixed UTC offsets, noting any date shift.
None.
| Name | Inputs | Answer |
|---|---|---|
| worked example | {"utc_date":"2026-09-30","utc_time":"18:30:00","offset_a":"-05:00","offset_b":"+01:00","offset_c":"+09:00"} | -05:00: 2026-09-30 13:30:00 (same day); +01:00: 2026-09-30 19:30:00 (same day); +09:00: 2026-10-01 03:30:00 (next day) |
| test vector: all same day | {"utc_date":"2026-01-01","utc_time":"12:00:00","offset_a":"+00:00","offset_b":"+02:00","offset_c":"-03:00"} | +00:00: 2026-01-01 12:00:00 (same day); +02:00: 2026-01-01 14:00:00 (same day); -03:00: 2026-01-01 09:00:00 (same day) |
| test vector: previous day rollover | {"utc_date":"2026-06-15","utc_time":"01:00:00","offset_a":"-08:00","offset_b":"+00:00","offset_c":"+05:30"} | -08:00: 2026-06-14 17:00:00 (previous day); +00:00: 2026-06-15 01:00:00 (same day); +05:30: 2026-06-15 06:30:00 (same day) |
7933c8f804bbcbd8484868d62edb0dd02026-09-30T22:39:30.722Zfa06cac422708aa2c0424edd41a7a1ab00f79c3eff2718cb74a4c0b153ff4976