converting ISO8601 date and time string representations to datetime

Skip Montanaro skip at pobox.com
Thu Jul 31 08:59:28 EDT 2014


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



More information about the Python-list mailing list