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()}")
}Output
2026-03-29T12:00:00+02:00[Europe/Berlin]
pub(api) static op +(a: ZonedTime, p: Period) -> ZonedTimeSince. 1.0.0-beta
Parameters
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:2316