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.

Title: strftime format string %F %T consistency problem
Type: behavior Stage: resolved
Components: Versions: Python 3.2
Status: closed Resolution: duplicate
Dependencies: Superseder: external strftime for Python?
View: 3173
Assigned To: Nosy List: kfairbanks, r.david.murray
Priority: normal Keywords:

Created on 2012-06-14 12:48 by kfairbanks, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg162779 - (view) Author: Kevin (kfairbanks) Date: 2012-06-14 12:48
When using %F and %T in strftime on Mac and Linux the function works as expected, but it fails on Windows.  Although these format strings are not in the Python documentation, the inconsistent behavior should be noted or corrected.  If possible, the %F and %T could be expanded in some way on Windows systems or cause a format string error on POSIX systems so that the function behaves the same way across platforms.
msg162785 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-06-14 13:29
The reason the codes are not documented is that they are not supported.  Because we delegate to the system strftime, they happen to work.

To change that the most sensible thing would be to have our own strftime implementation, which makes this essentially a duplicate of issue 3173.  See also issue 14441.
Date User Action Args
2022-04-11 14:57:31adminsetgithub: 59270
2012-06-14 13:29:27r.david.murraysetstatus: open -> closed

superseder: external strftime for Python?

nosy: + r.david.murray
messages: + msg162785
resolution: duplicate
stage: resolved
2012-06-14 12:48:00kfairbankscreate