Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!roy From: Roy Smith Newsgroups: comp.lang.python Subject: Re: converting ISO8601 date and time string representations to datetime Date: Thu, 31 Jul 2014 07:52:44 -0400 Organization: PANIX Public Access Internet and UNIX, NYC Lines: 21 Message-ID: References: NNTP-Posting-Host: localhost X-Trace: reader1.panix.com 1406807565 24784 127.0.0.1 (31 Jul 2014 11:52:45 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 31 Jul 2014 11:52:45 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: csiph.com comp.lang.python:75410 In article , Wolfgang Maier wrote: > Hi, > I'm trying to convert ISO8601-compliant strings representing dates or > dates and times into datetime.datetime objects. https://pypi.python.org/pypi/iso8601 or https://pypi.python.org/pypi/isodate 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.