Skip to main content

utc_year

Function utc_year 

Source
pub exec fn utc_year(short_year: u8) -> u16
Expand description
returns
utc_yr!(short_year),

Interprets the two-digit UTCTime year (YY) as a four-digit year (YYYY). As per ASN.1 UTCTime specification (X.680 47.3):

  • Years >= 50 are interpreted as 1950-1999
  • Years < 50 are interpreted as 2000-2049