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: %e Directive Missing in Datetime Documentation
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.6, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, marcrbouvier, r.david.murray
Priority: normal Keywords:

Created on 2015-09-09 21:35 by marcrbouvier, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg250335 - (view) Author: Marc Bouvier (marcrbouvier) Date: 2015-09-09 21:35
The %e directive is missing in the Datetime documentation. I have tried this directive in 2.6.6, 2.7.2, and 2.7.10 using datetime.datetime.strftime(datetime.datetime.now(), '%A, %B %e, %Y') and it works in all cases.

The below documentation line is pulled from, http://linux.die.net/man/3/strftime. The behavior is the same.

%e

Like %d, the day of the month as a decimal number, but a leading zero is replaced by a space. (SU)
msg250336 - (view) Author: Marc Bouvier (marcrbouvier) Date: 2015-09-09 21:38
Sorry, the documentation page I am looking at is https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior and https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior.
msg250337 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-09-09 21:45
strftime passes the string through to the OS, which sometimes supports more format codes than the ones documented as working on all platforms.  There is a note in the docs about this.
History
Date User Action Args
2022-04-11 14:58:20adminsetgithub: 69236
2015-09-09 21:45:17r.david.murraysetstage: resolved
2015-09-09 21:45:09r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg250337

resolution: not a bug
2015-09-09 21:38:23marcrbouviersetmessages: + msg250336
2015-09-09 21:35:00marcrbouviercreate