homepage

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: datetime: Read in isoformat() output
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder: datetime: add ability to parse RFC 3339 dates and times
View: 15873
Assigned To: Nosy List: perey
Priority: normal Keywords:

Created on 2013年09月11日 10:20 by perey, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (1)
msg197482 - (view) Author: Timothy Pederick (perey) Date: 2013年09月11日 10:20
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().
History
Date User Action Args
2022年04月11日 14:57:50adminsetgithub: 63204
2013年09月11日 11:32:41r.david.murraysetstatus: open -> closed
superseder: datetime: add ability to parse RFC 3339 dates and times
stage: resolved
resolution: duplicate
versions: + Python 3.4, - Python 3.3
2013年09月11日 10:20:13pereycreate

AltStyle によって変換されたページ (->オリジナル) /