OxL Reference

op ZonedTime.-

Calendar arithmetic: the wall clock moves back by the period; the offset may change with daylight saving time.

Example:

oxl✓ checked in CI
fn main() io {
  print("{(2026-03-30T12: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) -> ZonedTime

Since. 1.0.0-beta

Parameters

NameType
aZonedTime
pPeriod

Returns

ZonedTime

Effects

none declared (pure unless the body says otherwise)

Defined in: std/time/time.oxl:2328

See also