OxL Reference

op Inst.+

The reading d later.

Example:

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

fn main() io, time {
  let a = Instant.now()
  print("{((a + 1s) - a).seconds()}")
}
Output
1
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:2087

See also