Sergey Bon. <s...@pm.me> added the comment:
Not following msg332388 would lead to this: # Sunday of the week 53 >>> datetime.strptime ('2017 Sun 53', '%Y %a %U') datetime.datetime(2017, 12, 31, 0, 0) # First day of the week 53 # oops! assumed Monday is the first day of the week but 2017 ends on Sunday >>> datetime.strptime ('2017 53', '%Y %U') datetime.datetime(2018, 1, 1, 0, 0) >>> datetime.strptime ('2017 Mon 53', '%Y %a %U') datetime.datetime(2018, 1, 1, 0, 0) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue30802> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com