Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75414
| Subject | Re: converting ISO8601 date and time string representations to datetime |
|---|---|
| From | Roy Smith <roy@panix.com> |
| Date | 2014-07-31 09:13 -0400 |
| References | <mailman.12461.1406797909.18130.python-list@python.org> <roy-FFB727.07524431072014@news.panix.com> <CANc-5UzBKPNQt+Vk3_pzmasqvwUEWALRHOETwz_RLYzrGe1tpw@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12464.1406812399.18130.python-list@python.org> (permalink) |
On Jul 31, 2014, at 8:59 AM, Skip Montanaro wrote: > 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. +0.8. But, even more than that, dateutil should come with a library of strings for common formats, and a built-in function to parse 8601. It is, after all, the international standard. -- Roy Smith roy@panix.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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