Parsing ARPA dates before Unix epoch breaks?

Ramon Felciano <felciano-/[email protected]>
Newsgroups gmane.comp.python.egenix.user
Message-ID <[email protected]>
Hi --

I've run into trouble parsing dates using the ARPA module in
mxDateTime on Windows. It appears that it is based on a limitation
around dates before the Unix epoch, which I thought this package
helped you work around:

>>> mx.__version__
'3.1.2'
>>> mx.DateTime.ARPA.ParseDateTimeUTC("Thu, 1 Jan 1970 00:43:25 -0400").gmtoffset()
<mx.DateTime.DateTimeDelta object for '-08:00:00.00' at 1497b60>
>>> mx.DateTime.ARPA.ParseDateTimeUTC("Wed, 1 Jan 1969 00:43:25 -0400").gmtoffset()
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
Error: cannot convert value to a time value

Is this expected behavior?

Thanks,

Ramon


_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.