OxL Reference

method i64.year

A period of this many years (singular form for 1.year()).

Example:

oxl✓ checked in CI
fn main() io {
  print("{1.year().totalMonths()}")
}
Output
12
pub(api) fn year() -> Period

Since. 1.0.0-beta

Returns

Period

Effects

none declared (pure unless the body says otherwise)

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

See also