[issue12006] strptime should implement %V or %u directive from libc
Alexander Belopolsky
report at bugs.python.org
Mon Sep 29 17:35:36 CEST 2014
Alexander Belopolsky added the comment:
For future reference, here is the example showing %Y %V ambiguity:
>>> date(2013,12,31).strftime('%Y %V %u')
'2013 01 2'
>>> date(2013,1,1).strftime('%Y %V %u')
'2013 01 2'
which is resolved by using %G
>>> date(2013,12,31).strftime('%G %V %u')
'2014 01 2'
>>> date(2013,1,1).strftime('%G %V %u')
'2013 01 2'
In other words, '2013 01 2' cannot be unambiguously parsed using '%Y %V %u' format.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12006>
_______________________________________
More information about the Python-bugs-list
mailing list