OxL Reference

op Ldt.-

The exact duration between two local date-times.

Example:

oxl✓ checked in CI
fn main() io {
  print("{(2026-11-03T12:00 - 2026-11-03T09:30).minutes()}")
}
Output
150
pub(api) static op -(a: Ldt, b: Ldt) -> Dur

Since. 1.0.0-beta

Parameters

NameType
aLdt
bLdt

Returns

Dur

Effects

none declared (pure unless the body says otherwise)

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

See also