method Ldt.in
This wall-clock time in tz (§17.2). A repeated time (clocks set back) takes the earlier instant by default,
.Later the later one and .Reject fails with AmbiguousTime; a missing time (clocks set forward) is moved forward.
Example:
fn main() io {
print("{2026-11-03T12:00.in(tz"Europe/Moscow")!.toIso()}")
}Output
2026-11-03T12:00:00+03:00[Europe/Moscow]
pub(api) fn in (tz: Tz, ambiguity: Ambiguity = .Earlier) -> ZonedTime | AmbiguousTimeSince. 1.0.0-beta
Errors
`AmbiguousTime` for a wall-clock time that occurs twice when `ambiguity` is `.Reject`; a time that does not exist (clocks set forward) moves forward.
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:1732