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

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: converting ISO8601 date and time string representations to datetime
Date 2014-07-31 07:52 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-FFB727.07524431072014@news.panix.com> (permalink)
References <mailman.12461.1406797909.18130.python-list@python.org>

Show all headers | 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