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


Groups > comp.lang.python > #75412

Re: converting ISO8601 date and time string representations to datetime

References <mailman.12461.1406797909.18130.python-list@python.org> <roy-FFB727.07524431072014@news.panix.com>
Date 2014-07-31 07:59 -0500
Subject Re: converting ISO8601 date and time string representations to datetime
From Skip Montanaro <skip@pobox.com>
Newsgroups comp.lang.python
Message-ID <mailman.12463.1406811576.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Jul 31, 2014 at 6:52 AM, Roy Smith <roy@panix.com> 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.

Skip

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