[issue13305] datetime.strftime("%Y") not consistent for years < 1000
1 Jan
2016
1 Jan
'16
4:47 a.m.
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-behavi...
Also, using %4Y seems to consistently produce zero-padded values across different platforms.
----------
keywords: +easy
_______________________________________
Python tracker
3031
Age (days ago)
3031
Last active (days ago)
0 comments
1 participants
участники (1)
-
Ezio Melotti