Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75410

Re: converting ISO8601 date and time string representations to datetime

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 <roy@panix.com>
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 <roy-FFB727.07524431072014@news.panix.com> (permalink)
References <mailman.12461.1406797909.18130.python-list@python.org>
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

Show key headers only | View raw


In article <mailman.12461.1406797909.18130.python-list@python.org>,
 Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

converting ISO8601 date and time string representations to datetime Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-07-31 11:11 +0200
  Re: converting ISO8601 date and time string representations to datetime Roy Smith <roy@panix.com> - 2014-07-31 07:52 -0400
    Re: converting ISO8601 date and time string representations to datetime Skip Montanaro <skip@pobox.com> - 2014-07-31 07:59 -0500
    Re: converting ISO8601 date and time string representations to datetime Roy Smith <roy@panix.com> - 2014-07-31 09:13 -0400
    Re: converting ISO8601 date and time string representations to datetime Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-07-31 15:29 +0200

csiph-web