Format Characters Used by the strftime() Function for Year
Character Description %g Two-digit year for ISO-8601 week of the year. %G Four-digit year for ISO-8601 week of the year. %y Two-digit year. %Y Four-digit year.