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

Florent Xicluna <florent.xicluna@gmail.com> added the comment: I understand that the issue is because the C standard does not specify the length of the string returned by '%Y'. The changeset 230f0956aaa3 adds a test to verify that either '%Y' or '%4Y' returns a 4-digits value usable to produce ISO-8601 representations. Now it is a documentation issue: add a comment to the "%Y" specifier saying that the padding is not applicable to all platforms and in such case the "%4Y" specifier should return the 4-digit value. ---------- assignee: -> docs@python components: +Documentation dependencies: -external strftime for Python? nosy: +docs@python superseder: -> external strftime for Python? _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13305> _______________________________________
participants (1)
-
Florent Xicluna