OxL Reference

method Dur.ofMinutes

A duration of n minutes.

Example:

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

fn main() io {
  print("{Duration.ofMinutes(2).seconds()}")
}
Output
120
pub(api) static fn ofMinutes(n: i64) -> Dur

Since. 1.0.0-beta

Parameters

NameType
ni64

Returns

Dur

Effects

none declared (pure unless the body says otherwise)

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

See also