[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

Iakov Davydov report at bugs.python.org
Tue Feb 10 18:07:02 CET 2009


New submission from Iakov Davydov <dav01 at myths.ru>:

Currently there is no obvious way to parse time from ISO
8601/W3C/RFC3339 date&time format (http://www.ietf.org/rfc/rfc3339.txt)
or RFC2822. (Actually RFC2822 could be parsed with rfc822 module but
that is not very good way).

I suggest that we should add special directive (let's say %o) for time
offset which is "Z" or ("+" / "-") time-hour ":" time-minute.

Also %O directive will parse zone:  ( "+" / "-" ) time-hour time-minute.
(I suppose there is no need to support obsolate time zones but if that
is possible it's also good idea).

----------
components: Library (Lib)
messages: 81565
nosy: davydov
severity: normal
status: open
title: extend strftime/strptime format for RFC3339 and RFC2822
type: feature request

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


More information about the Python-bugs-list mailing list