Serhiy Storchaka added the comment: There are other issues.
strptime with single %Y returns a date of the first day of the year. What should return single %G? >>> time.strptime('2015', '%Y') time.struct_time(tm_year=2015, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=-1) >>> time.strptime('2015', '%G') time.struct_time(tm_year=1900, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=0, tm_yday=1, tm_isdst=-1) See also issue23717 and issue23718. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12006> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com