[docs] [issue13305] datetime.strftime("%Y") not consistent for years < 1000

STINNER Victor report at bugs.python.org
Sat Mar 12 02:10:52 EST 2016


STINNER Victor added the comment:

>> About Elena Oat's patch issue13305.diff: I'm not sure that
>> strftime("%4Y") works on all platforms

> It doesn't, that's what the patch is trying to document.

Oh. I confirm: %4Y gives "4Y" for any year on FreeBSD and Mac OS X, it raises ValueError("Invalid format string") on Windows, etc.

----------

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


More information about the docs mailing list