data AmbiguousTime
A local wall-clock time that occurs twice (clocks set back) and Ambiguity.Reject was requested (§17.2).
Example:
use std.time { ZonedTime, AmbiguousTime }
fn main() io {
let local = 2026-10-25T02:30
match local.in(tz"Europe/Berlin", .Reject) {
ZonedTime z => print("unique {z.toIso()}")
AmbiguousTime _ => print("occurs twice")
}
}Output
occurs twice
@error pub(api) data AmbiguousTimeThread safety. an immutable value.
Since. 1.0.0-beta
Fields
pub(api) msg: str | Which local time is ambiguous. |
Defined in: std/time/time.oxl:209