OxL Reference

op Dur./

A duration divided by an integer (truncating to nanoseconds).

Example:

oxl✓ checked in CI
fn main() io {
  print("{(1h / 4).minutes()}")
}
Output
15
pub(api) static op /(a: Dur, k: i64) -> Dur

Since. 1.0.0-beta

Parameters

NameType
aDur
ki64

Returns

Dur

Effects

none declared (pure unless the body says otherwise)

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

See also