op Inst.-
The reading d earlier.
Example:
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) -> InstSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
a | Inst |
d | Dur |
Returns
Inst
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:2102