Skip to main content

current_year

Function current_year 

Source
pub fn current_year() -> i64
Expand description

The year used for dates typed without one, from the system clock (browser clock on wasm). Falls back to 2026 only when no clock is available.