[issue44787] Missing valid directive %D in datetime.strftime() documentation

Raphael report at bugs.python.org
Sun Oct 24 09:12:10 EDT 2021


Raphael <rafal1.1990 at o2.pl> added the comment:

Perhaps it could be mentioned more clearly in the datetime documentation that apart from the directives of the C89 standard, you can also use those that the underlying libc strftime() supports.

The following sentence from https://docs.python.org/3/library/time.html#time.strftime describes it well in my opinion:
"Additional directives may be supported on certain platforms, but only the ones listed here have a meaning standardized by ANSI C."

Perhaps a reference to "man strftime" would also be helpful.

----------
nosy: +Raphael

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44787>
_______________________________________


More information about the Python-bugs-list mailing list