Message334462
This relates to the calculation of the week number from a given datetime, when calling the strftime method. If you call isocalendar() on the datetime.datetime object for the date ‘2018-12-31’, the week number returned is 1, which is correct. This is the same when checking the week attribute for the pandas timestamp equivalent. However, when you call strftime on this object (either datetime or timestamp), passing the ‘%W’ offset string, it returns 53, and then returns 00 for the remainder of the week. It seems that the rest of the weeks in 2019 are out by 1 when returned using this function. This issue seems to be present with the strptime function also. |
|
Date |
User |
Action |
Args |
2019-01-28 12:32:11 | tr12 | set | recipients:
+ tr12, paul.moore, tim.golden, zach.ware, steve.dower |
2019-01-28 12:32:09 | tr12 | set | messageid: <1548678729.34.0.0402959484409.issue35841@roundup.psfhosted.org> |
2019-01-28 12:32:09 | tr12 | link | issue35841 messages |
2019-01-28 12:32:09 | tr12 | create | |
|