This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hywl51
Recipients hywl51
Date 2016-12-27.10:05:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1482833112.13.0.0168836521105.issue29081@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-12-27 10:05:12hywl51setrecipients: + hywl51
2016-12-27 10:05:12hywl51setmessageid: <1482833112.13.0.0168836521105.issue29081@psf.upfronthosting.co.za>
2016-12-27 10:05:12hywl51linkissue29081 messages
2016-12-27 10:05:11hywl51create