[issue35841] Datetime strftime() does not return correct week numbers for 2019

2019-01-29 Thread Tommy Rowland
Tommy Rowland added the comment: Hi Paul, Thank you for the clarification. I can see that %V does indeed return the correct week number. It seems that when calling strftime, it is possible to use this in conjunction with %y, but when calling strptime, it is not. Is this also intended

[issue35841] Datetime strftime() does not return correct week numbers for 2019

2019-01-28 Thread Tommy Rowland
New submission from Tommy Rowland : 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