|
|
|
|
|
by Animats
3593 days ago
|
|
This area is prone to severe bikeshedding. Back in 2012, I filed a Python bug, "datetime: add ability to parse RFC 3339 dates and times"[1] RFC 3339 timestamps appear in email, RSS feeds, etc. The datetime library could output them, but not parse them. There are at least seven parsing functions in PyPi for them, and each has some major problem. There have been steady discussions of this issue for almost four years now. I dropped out years ago, but the arguments go on. [1] https://bugs.python.org/issue15873 |
|
Where exactly in email to do they appear? In the header, it's been my experience they all conform to the RFC 2822 spec, and could be parsed with the standard library function email.utils.parsedate_tz[1].
[1] https://docs.python.org/2/library/email.util.html#email.util...