Function utc2k::year

source ·
pub fn year() -> u16
Expand description

Now (Current Year).

This returns the current year as a u16.

See unixtime for notes about system clock error recovery.

Examples

assert_eq!(utc2k::Utc2k::now().year(), utc2k::year());