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

Florent Xicluna report at bugs.python.org
Thu Nov 3 21:20:49 CET 2011


Florent Xicluna <florent.xicluna at 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 at python
components: +Documentation
dependencies:  -external strftime for Python?
nosy: +docs at python
superseder:  -> external strftime for Python?

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


More information about the docs mailing list