OxL Reference

method Period.ofDays

A calendar period of n days.

Example:

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

fn main() io {
  print("{Period.ofDays(3).days}")
}
Output
3
pub(api) static fn ofDays(n: i64) -> Period

Since. 1.0.0-beta

Parameters

NameType
ni64

Returns

Period

Effects

none declared (pure unless the body says otherwise)

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

See also