[issue12006] strptime should implement %V or %u directive from libc

Erik Cederstrand report at bugs.python.org
Fri May 27 10:43:42 CEST 2011


Erik Cederstrand <ec at 1calendar.dk> added the comment:

Reading you comment again, I see the ambiguity now, if %Y is interpreted as "The resulting date MUST be in 2001".

I think the safest way would be to implement %G and fail if %Y is used in combination with %V. Maybe even fail if %V and %u aren't used in combination (since using %w could mean either the Sunday in the end of ISO week X or the Sunday preceeding ISO week X).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12006>
_______________________________________


More information about the Python-bugs-list mailing list