OxL Reference

op Tm.-

The instant b earlier.

Example:

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

fn main() io {
  print("{(Time.ofUnixSeconds(7200) - 1h).unixSeconds()}")
}
Output
3600
pub(api) static op -(a: Tm, b: Dur) -> Tm

Since. 1.0.0-beta

Parameters

NameType
aTm
bDur

Returns

Tm

Effects

none declared (pure unless the body says otherwise)

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

See also