op ZonedTime.+
Calendar arithmetic (§17.2): the wall clock moves, the offset may change with daylight saving time.
Example:
fn main() io {
print("{(2026-03-28T12:00.in(tz"Europe/Berlin")! + 1.day()).toIso()}")
}Вывод
2026-03-29T12:00:00+02:00[Europe/Berlin]
pub(api) static op +(a: ZonedTime, p: Period) -> ZonedTimeС версии. 1.0.0-beta
Параметры
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/time/time.oxl:2316