[New-bugs-announce] [issue19004] datetime: Read in isoformat() output

Timothy Pederick report at bugs.python.org
Wed Sep 11 12:20:13 CEST 2013


New submission from Timothy Pederick:

At present, the datetime module does not provide the capability to parse its own output from the isoformat() methods.

strptime() can't handle timezones with colons in them (and anyway it seems to me you'd need to try several possible format strings depending on ' ' vs 'T' separators, presence/absence of microseconds, pres/abs timezone...). Adding this capability would be one option (%f already establishes a precedent for adding codes outside of what C supports).

Another, perhaps superior option would be a specific method for parsing the output of isoformat().

----------
components: Library (Lib)
messages: 197482
nosy: perey
priority: normal
severity: normal
status: open
title: datetime: Read in isoformat() output
type: enhancement
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19004>
_______________________________________


More information about the New-bugs-announce mailing list