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()}")
}Вывод
2026-11-03T12:00:00+03:00[Europe/Moscow]
pub(api) fn in (tz: Tz, ambiguity: Ambiguity = .Earlier) -> ZonedTime | AmbiguousTimeС версии. 1.0.0-beta
Ошибки
`AmbiguousTime` for a wall-clock time that occurs twice when `ambiguity` is `.Reject`; a time that does not exist (clocks set forward) moves forward.
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/time/time.oxl:1732