[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2019-01-17 Thread Sergey Bon.
Change by Sergey Bon. : -- keywords: +patch, patch, patch pull_requests: +11294, 11295, 11296 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2019-01-17 Thread Sergey Bon.
Change by Sergey Bon. : -- keywords: +patch, patch pull_requests: +11294, 11295 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2019-01-17 Thread Sergey Bon.
Change by Sergey Bon. : -- keywords: +patch pull_requests: +11294 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue30802> ___ ___ Py

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2018-12-24 Thread Sergey Bon.
Sergey Bon. added the comment: If %W and %U are allowed to be used without specifying the weekday by assuming it to be the first day of the week, then the same rule should apply to %V (ISO 8601 week) for consistency. -- ___ Python tracker <ht

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2018-12-23 Thread Sergey Bon.
Sergey Bon. added the comment: Not following msg332388 would lead to this: # Sunday of the week 53 >>> datetime.strptime ('2017 Sun 53', '%Y %a %U') datetime.datetime(2017, 12, 31, 0, 0) # First day of the week 53 # oops! assumed Monday is the first day of the week but 2017 ends

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2018-12-23 Thread Sergey Bon.
Sergey Bon. added the comment: Documentation says: %U - Week number of the year (Sunday as the first day of the week) %W - Week number of the year (Monday as the first day of the week) It wouldn't be intuitive if %U assumed Sunday when weekday provided and Monday otherwise. There are two