OxL Reference

op Tm.-

The instant d earlier.

Example:

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

fn main() io {
  print("{(Time.ofUnixSeconds(100) - 30s).unixSeconds()}")
}
Output
70
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:1902

See also