OxL Reference

op Inst.-

The reading d earlier.

Example:

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

fn main() io, time {
  let a = Instant.now()
  print("{(a - (a - 2s)).seconds()}")
}
Output
2
pub(api) static op -(a: Inst, d: Dur) -> Inst

Since. 1.0.0-beta

Parameters

NameType
aInst
dDur

Returns

Inst

Effects

none declared (pure unless the body says otherwise)

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

See also