Utkarsh Upadhyay added the comment: This case is explicitly mentioned in the documentation: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior
> 7. When used with the strptime() method, %U and %W are only used in > calculations when the day of the week and the calendar year (%Y) are > specified. The documentation also says that the %u (day of the week) format specifier was added only in Python 3.6. ~ ut ---------- nosy: +musically_ut _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30802> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com