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

Ezio Melotti report at bugs.python.org
Thu Dec 31 23:47:09 EST 2015


Ezio Melotti added the comment:

See msg146972 -- AFAIU the padding of %Y is inconsistent for years <1000 (e.g. 0042 vs 42), and this is not documented in the note (2) of https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior
Also, using %4Y seems to consistently produce zero-padded values across different platforms.

----------
keywords: +easy

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


More information about the docs mailing list