enum Ambiguity
Which of two equal wall-clock times to take when clocks are set back (§17.2): ldt.in(tz, .Later).
Example:
use std.time { Ambiguity }
fn main() io {
let local = 2026-10-25T02:30
let early = local.in(tz"Europe/Berlin", .Earlier)!
let late = local.in(tz"Europe/Berlin", .Later)!
print("{early.toIso()} {late.toIso()}")
}Output
2026-10-25T02:30:00+02:00[Europe/Berlin] 2026-10-25T02:30:00+01:00[Europe/Berlin]
pub(api) enum AmbiguitySince. 1.0.0-beta
Variants
Earlier | Take the first of the two instants. |
Later | Take the second of the two instants. |
Reject | Fail with |
Defined in: std/time/time.oxl:230