simsong/dfxml — pull request #1 by ajnelson (2012-06-27 19:35:59+00:00)
Title: Pull in better-but-not-perfect dftime corrections

Hi Simson,

(This is my first pull request, sorry if something's clunky.)

I've fixed some issues with dfxml.dftime. Basically I've finished some runtime errors in a function you had 99% complete, and got all the unit tests to run. Not all the unit tests are correct yet. Commit message below.

--Alex

SLG had started iso8601Tdatetime, seemingly to replace parse_iso8601. It
works pretty well as a drop-in replacement. With these corrections, no
unit tests for dftime raise an exception. Some incorrect values are
occurring consistently in Python 2 and 3, though, noted below.

a=2000-01-02T02:03:04-0100 b=2000-01-02T02:03:04-0200 want=False equal=True (!)
a=2000-01-02T02:03:04-0100 b=2000-01-02T01:03:04-0200 want=True equal=False (!)
a=2009-11-17T00:33:30.9375Z b=2009-11-17T00:33:30Z want=True greater=False (!)
a=2009-11-17T00:33:30.9375Z b=2009-11-17T00:33:30Z want=False equal=True (!)