OxL Reference

op Ldt.+

Calendar arithmetic: months first, then days; the time of day is kept.

Example:

oxl✓ checked in CI
fn main() io {
  print("{(2026-01-31T10:00 + 1.month()).toIso()}")
}
Output
2026-02-28T10:00:00
pub(api) static op +(a: Ldt, p: Period) -> Ldt

Since. 1.0.0-beta

Parameters

NameType
aLdt
pPeriod

Returns

Ldt

Effects

none declared (pure unless the body says otherwise)

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

See also