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

Jan. 1, 2016
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 <report@bugs.python.org> <http://bugs.python.org/issue13305> _______________________________________
3365
Age (days ago)
3365
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ezio Melotti