[IronPython] Two hour error in IPY implementation of time.mktime and time.gmtime

Vernon Cole vernondcole at gmail.com
Tue Aug 26 19:48:46 CEST 2008


Good idea, Curt.
  My implementation is so Windows specific that it had not occurred to be
that this small sample is actually portable. (The very idea of doing DCOM
from a Linux box is a bit chilling. Perhaps using Iron Python on MONO?
Brrrrr!)

Here's the result on my other workstation using the built in Python (stock
Ubuntu Hardy):
v v v v v v v
2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
Starting with tt = (2002, 6, 28, 15, 20, 1, 4, 179, -1)
COMDate= 37435.6389005
mktime= 1025299201.0
using time.gmtime= (2002, 6, 28, 15, 20, 1, 4, 179, 0)
using datetime   =  2002-06-28 15:20:01.004000
^ ^ ^ ^ ^ ^
It matches CPython on Windows exactly, at least in my time zone. Someone
should try it who does not live in USA Mountain Daylight Time.
--
Vernon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080826/a437e065/attachment.html>


More information about the Ironpython-users mailing list