Message284080
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. |
|
Date |
User |
Action |
Args |
2016-12-27 10:05:12 | hywl51 | set | recipients:
+ hywl51 |
2016-12-27 10:05:12 | hywl51 | set | messageid: <1482833112.13.0.0168836521105.issue29081@psf.upfronthosting.co.za> |
2016-12-27 10:05:12 | hywl51 | link | issue29081 messages |
2016-12-27 10:05:11 | hywl51 | create | |
|