[egenix-users] mxDateTime calculation error
Jäckle Thomas
tjaeckle at zes.com
Mon Jan 3 14:25:30 CET 2005
Hello!
I found an error when executing following Python script:
import mx.DateTime
date = mx.DateTime.DateTime(2005, 1, 2, 12, 42, 27.64)
print date
date = date - 0
print date
The result should be:
2005-01-02 12:42:27.64
2005-01-02 12:42:27.63
So the subtraction of 0 seems to change the time! This reduction of 1/100
second happens not always but only with several numbers (like 27.64s in
above example).
This subtraction happens for example at the end of the DateTimeFrom()
function (where on offset of 0 is subtracted), so I can't work around it.
Is this bug known? Is there any solution?
Thanks in advance
Best regards
Thomas Jäckle
More information about the egenix-users
mailing list