walidazizi / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

Timestamps with microseconds *and* "Z" timezone are not parsed #153

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here is a short fix for time stamps like "2010-12-08T15:40:59.265506Z" that 
include microseconds and a UTC timezone to be parsed by rdflib.

This builds on top of issue #46.
Ultimately the whole datetime parsing should probably be reworked using e.g. 
http://pypi.python.org/pypi/isodate/0.4.0 or 
http://pypi.python.org/pypi/iso8601/

Original issue reported on code.google.com by christop...@gmail.com on 8 Dec 2010 at 2:56

Attachments:

GoogleCodeExporter commented 8 years ago
Adding a test case.

Original comment by christop...@gmail.com on 8 Dec 2010 at 7:28

Attachments:

GoogleCodeExporter commented 8 years ago
Franz AllegroGraph seems to return a timezone 'Z' if no timezone is specified 
which triggers this bug.

See also #118 which deals with a similar problem with datetime objects.

Original comment by christop...@gmail.com on 9 Dec 2010 at 2:43

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1903.

Original comment by gromgull on 28 Jan 2011 at 6:53

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 7e13a5cf3827.

Original comment by gromgull on 30 Mar 2011 at 9:07