OxL Reference

method Date.year

The year of the date.

Example:

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

fn main() io {
  print("{Date.of(2026, 11, 3)!.year()}")
}
Output
2026
pub(api) fn year() -> i64

Since. 1.0.0-beta

Returns

i64

Effects

none declared (pure unless the body says otherwise)

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

See also