strptime seems to create wrong date from week number
问题 strptime seems to create wrong date from week number... First case : dt1 = dateutil.parser.parse('2016-01-04 00:00:00+01:00') dt1.isocalendar() => (2016, 1, 1) # (year, week number, week day) from datetime import datetime datetime.strptime('2016 1 1', '%Y %W %w') => datetime.datetime(2016, 1, 4, 0, 0) # OK Second case : dt1 = dateutil.parser.parse('2015-12-28 00:00:00+01:00') dt1.isocalendar() => (2015, 53, 1) # (year, week number, week day) datetime.strptime('2015 53 1', '%Y %W %w') =>