method Date.year
The year of the date.
Example:
use std.time { Date }
fn main() io {
print("{Date.of(2026, 11, 3)!.year()}")
}Output
2026
pub(api) fn year() -> i64Since. 1.0.0-beta
Returns
i64
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:1334