converting ISO8601 date and time string representations to datetime

Albert-Jan Roskam fomcl at yahoo.com
Thu Jul 31 14:59:26 EDT 2014




>In article <mailman.12461.1406797909.18130.python-list at python.org>,
> Wolfgang Maier <wolfgang.maier at 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

Yikes, what a regex. It must have been painstaking to get that right.
https://bitbucket.org/micktwomey/pyiso8601/src/2bd28b5d6cd2481674a8b0c54a8bba64ab775f81/iso8601/iso8601.py?at=default



More information about the Python-list mailing list