Florent Xicluna <florent.xicl...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue13305> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com