[issue12006] strptime should implement %G, %V and %u directives
Serhiy Storchaka
report at bugs.python.org
Fri Mar 20 06:52:23 CET 2015
Serhiy Storchaka added the comment:
The patch is synchronized with the tip, added the versionadded directives and whatsnews entry, addressed sasha's comment on Rietveld. Fixed a bug: %a and %A now are interchangeable with %u as well as with %w.
I don't understand what more test are needed. Existing tests cover %Y %V ambiguity:
>>> date(1906, 12, 31).strftime('%G %V %u')
'1907 01 1'
>>> date(1917, 12, 31).strftime('%G %V %u')
'1918 01 1'
----------
Added file: http://bugs.python.org/file38585/issue12006_5.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12006>
_______________________________________
More information about the Python-bugs-list
mailing list