OxL Reference

method i64.years

A period of this many years.

Example:

oxl✓ checked in CI
fn main() io {
  print("{3.years().totalMonths()}")
}
Output
36
pub(api) fn years() -> Period

Since. 1.0.0-beta

Returns

Period

Effects

none declared (pure unless the body says otherwise)

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

See also