New submission from hywl51: In [1]:import time
In [2]: time.strptime('2016 52 0', '%Y %W %w') Out[2]: time.struct_time(tm_year=2017, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=6, tm_yday=367, tm_isdst=-1) When given the parameters above, the function return the struct_time object with tm_yday=367, that is wrong. I test the codes on Python 2.7.11 and 3.5.1, the error is same. ---------- components: Library (Lib) messages: 284080 nosy: hywl51 priority: normal severity: normal status: open title: time.strptime() return wrong result type: behavior versions: Python 2.7, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29081> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com