converting ISO8601 date and time string representations to datetime

Roy Smith roy at
Thu Jul 31 13:52:44 CEST 2014

In article <mailman.12461.1406797909.18130.python-list at>,
 Wolfgang Maier <wolfgang.maier at> wrote:

> Hi,
> I'm trying to convert ISO8601-compliant strings representing dates or 
> dates and times into datetime.datetime objects.


There's also....
> I do know about the dateutil package, but I'd prefer to stick to the 
> stdlib for this.

Sadly, the stdlib datetime really doesn't make life easy for dealing 
with ISO-8601.  Dateutil is the classic answer, but it's slow. The 
isodate module cited above is what we use.

More information about the Python-list mailing list