converting ISO8601 date and time string representations to datetime

Skip Montanaro skip at
Thu Jul 31 14:59:28 CEST 2014

On Thu, Jul 31, 2014 at 6:52 AM, Roy Smith <roy at> wrote:
> Sadly, the stdlib datetime really doesn't make life easy for dealing
> with ISO-8601.  Dateutil is the classic answer, but it's slow.

A useful feature for dateutil would be a "sniff" function which, given
a date string that dateutil.parser.parse can handle, instead returns a
format string suitable for use with time.strptime.


More information about the Python-list mailing list