OxL Reference

op Tm.+

The instant d later.

Example:

oxl✓ checked in CI
use std.time { Time }

fn main() io {
  print("{(Time.ofUnixSeconds(100) + 1m).unixSeconds()}")
}
Output
160
pub(api) static op +(a: Tm, d: Dur) -> Tm

Since. 1.0.0-beta

Parameters

NameType
aTm
dDur

Returns

Tm

Effects

none declared (pure unless the body says otherwise)

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

See also