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")
}
}Вывод
occurs twice
@error pub(api) data AmbiguousTimeПотокобезопасность. an immutable value.
С версии. 1.0.0-beta
Поля
pub(api) msg: str | Which local time is ambiguous. |
Определено в: std/time/time.oxl:209