pub fn year() -> u16
This returns the current year as a u16.
u16
See unixtime for notes about system clock error recovery.
unixtime
assert_eq!(utc2k::Utc2k::now().year(), utc2k::year());