[egenix-users] Parsing ARPA dates before Unix epoch breaks?

Ramon Felciano felciano at yahoo.com
Thu Apr 15 15:39:07 CEST 2010

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__
>>> 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?



More information about the egenix-users mailing list