[wxPython-users] 2.6=>2.8 (windows) - wxHorror :/
Wojtek P
wojtulek at gmail.com
Fri Oct 12 03:54:04 PDT 2007
>
> >
> > 2) some troubles with julian date (i use only whole days without time) -
> > in 2.6 i got for example GetJDN()=3D=3D2.5, and now this same date=3D=
=3D2.485 -
> > and finally i get wrong result date - i use now ResetTime() for better
> > way (i get xxxx.xx.xx 01:00:00, with 2.6 i got 00:00:00 time)
>
> Can you provide some sample code that shows this problem?
>
>
import wx
import wx._misc as misc
import sys
print "\n\n Python",sys.version
print " wxPython",wx.VERSION_STRING,"\n"
test_date =3D misc.DateTimeFromDMY(1,1,2001) # 01.01.2001
print " test_date",test_date
test_jdn =3D test_date.GetJDN()
print " test_date.GetJDN()",test_jdn
Results:
# Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]
# wxPython 2.6.1.0
# test_date 02/01/01 00:00:00
# test_date.GetJDN() 2451941.5
# Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)]
# wxPython 2.8.4.2
# test_date 02/01/01 00:00:00
# test_date.GetJDN() 2451941.45833
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200710=
12/09f04e62/attachment.htm
More information about the wxpython-users
mailing list