OxL Reference

op Dur.+

The sum of two durations.

Example:

oxl✓ checked in CI
fn main() io {
  print("{(1h + 30m).minutes()}")
}
Output
90
pub(api) static op +(a: Dur, b: Dur) -> Dur

Since. 1.0.0-beta

Parameters

NameType
aDur
bDur

Returns

Dur

Effects

none declared (pure unless the body says otherwise)

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

See also