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: %ehrntDRT support for time.strptime
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder: external strftime for Python?
View: 3173
Assigned To: Nosy List: belopolsky, georg.brandl, zilche
Priority: normal Keywords:

Created on 2006-01-04 15:24 by zilche, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
strptime.diff zilche, 2006-01-04 15:46 patch w/ unittests and documentation review
Messages (3)
msg54702 - (view) Author: Johan Dahlin (zilche) Date: 2006-01-04 15:24
As defined in:
http://www.opengroup.org/onlinepubs/009695399/functions/strptime.html

%r -> locales representation of time + AM/PM
%e -> %d
%h -> %b
%D -> %m/%d/%y
%R -> %H:%M
%T -> %H:%M:%S
%n/%t -> whitespace
msg54703 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-01-10 19:18
Logged In: YES 
user_id=1188172

If these codes are supported in strptime, they must also be
supported in strftime. But the platform strftime is not
guaranteed to support these escapes on e.g. Windows.

I don't know if rewriting strftime in Python makes sense.

Anyhow, turning this into a feature request.
msg157257 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2012-04-01 06:14
#3173 proposes an OS-independent strftime implementation.
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42763
2012-04-01 06:14:55georg.brandlsetstatus: open -> closed
superseder: external strftime for Python?
resolution: duplicate
messages: + msg157257
2010-07-16 13:39:37BreamoreBoysetnosy: + belopolsky

versions: + Python 3.2, - Python 3.1, Python 2.7
2009-03-20 23:51:28ajaksu2settitle: %ehrntDRT support for time.strptime -> %ehrntDRT support for time.strptime
stage: patch review
versions: + Python 3.1, Python 2.7
2006-01-04 15:24:46zilchecreate