[IronPython] Two hour error in IPY implementation of time.mktime and time.gmtime
Michael Foord
fuzzyman at voidspace.org.uk
Tue Aug 26 09:20:29 PDT 2008
Curt Hagenlocher wrote:
> I'd appreciate it if someone could try running this script on a
> non-Windows OS and posting the output. I seem to recall having some
> reason to think that CPython on Windows isn't always returning the
> right answers when it comes to DST-related issues.
I haven't been following this fully, but here is the result of the
script with CPython 2.5.2 and ipy 1 on OS X 10.5.
michael-foords-mac-pro:compile michael$ python Script1.py
2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)]
Starting with tt = (2002, 6, 28, 15, 20, 1, 4, 179, -1)
COMDate= 37435.6389005
mktime= 1025274001.0
using time.gmtime= (2002, 6, 28, 15, 20, 1, 4, 179, 0)
using datetime = 2002-06-28 15:20:01.004000
michael-foords-mac-pro:compile michael$ ipy Script1.py
2.4.0 (IronPython 1.1 (1.1) on .NET 2.0.50727.42)
Starting with tt = (2002, 6, 28, 15, 20, 1, 4, 179, -1)
COMDate= 37435.6389005
mktime= 63160874401.0
using time.gmtime= (33, 6, 28, 15, 20, 1, 1, 179, -1)
using datetime = 2002-06-28 15:20:01.004000
using System = 06/28/2002 15:20:01
michael-foords-mac-pro:compile michael$
Michael
>
> On Tue, Aug 26, 2008 at 7:42 AM, Vernon Cole <vernondcole at gmail.com
> <mailto:vernondcole at gmail.com>> wrote:
>
> Codeplex came through. This bug is now submitted properly. Sorry
> about the noise.
> --
> Vernon
>
> On Tue, Aug 26, 2008 at 1:44 AM, Vernon Cole
> <vernondcole at gmail.com <mailto:vernondcole at gmail.com>> wrote:
>
> Dear implementors: [...]
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.theotherdelia.co.uk/
http://www.resolverhacks.net/
More information about the Users
mailing list