Issue 15065: strftime format string %F %T consistency problem (original) (raw)

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.
History
Date User Action Args
2022-04-11 14:57:31 admin set github: 59270
2012-06-14 13:29:27 r.david.murray set status: open -> closedsuperseder: external strftime for Python?nosy: + r.david.murraymessages: + resolution: duplicatestage: resolved
2012-06-14 12:48:00 kfairbanks create