On Tue, Nov 21, 2006 at 09:02:52PM +0100, Dieter Maurer wrote:
Paul Winkler wrote at 2006-11-20 22:00 -0500:
On Mon, Nov 20, 2006 at 05:48:24PM -0600, John McIntyre wrote:
- I have been told 106900545747.045975 converts to: Tue May 22 1973 01:35:45 GMT-0500. I have learned that DateTime sometimes has issues with dates outside of 1970 - 2038. 1973 should fall within the acceptable range.
Heh, nope.
./bin/zopectl debug ...
print DateTime.DateTime(106900545747.045975).ISO() 5357-07-17 15:02:27
Looks you have a newer "DateTime" implementation.
The posted traceback clearly shows the the posters "DateTime" implementation clearly has had problems...
Yeah, I don't know what's up with that. Mainly I just wanted to correct one piece of misinformation, "- I have been told 106900545747.045975 converts to: Tue May 22 1973 01:35:45" That's wrong by several millenia, and the Python standard library agrees with (zope 2.9.1) DateTime.DateTime on this:
import time time.localtime(106900545747.045975).tm_year 5357
-- Paul Winkler http://www.slinkp.com