Author tr12
Recipients paul.moore, steve.dower, tim.golden, tr12, zach.ware
Date 2019-01-28.12:32:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548678729.34.0.0402959484409.issue35841@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-01-28 12:32:11tr12setrecipients: + tr12, paul.moore, tim.golden, zach.ware, steve.dower
2019-01-28 12:32:09tr12setmessageid: <1548678729.34.0.0402959484409.issue35841@roundup.psfhosted.org>
2019-01-28 12:32:09tr12linkissue35841 messages
2019-01-28 12:32:09tr12create