This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: datetime documentation incomplete
Type: enhancement Stage:
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: docs@python Nosy List: belopolsky, docs@python, ethan.furman, lemburg, spalac24
Priority: normal Keywords:

Created on 2014-11-14 15:56 by spalac24, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg231162 - (view) Author: Santiago Palacio Gómez (spalac24) Date: 2014-11-14 15:56
In the datetime documentation page https://docs.python.org/2/library/datetime.html
In the directive sections, there are a few things that are not documented there. I really don't know all the possible directives, but the few examples I'm aware of, and how they seem to work for me:
%D seems to behave as the default %x (None locale)
%h seems to behave as %b
msg231172 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2014-11-14 19:31
If you read the paragraph preceding the table of directives [1], you will see that "The full set of format codes supported varies across platforms, because Python calls the platform C library’s strftime() function, and platform variations are common. To see the full set of format codes supported on your platform, consult the strftime(3) documentation."


[1] https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior
History
Date User Action Args
2022-04-11 14:58:10adminsetgithub: 67060
2014-11-14 19:31:29belopolskysetstatus: open -> closed
resolution: wont fix
messages: + msg231172
2014-11-14 17:24:12ethan.furmansetnosy: + lemburg, belopolsky, ethan.furman
2014-11-14 15:56:01spalac24create