Originally fcint is converted to a datetime.timedelta object, but then to convert it to the fcint value to seconds a corresponding member of the object is accessed. But when using datetime.timedelta.seconds the returned value is always less than 1 day. Thus, to get a correct conversion to seconds for long fcints the datetime.timedelta.total_seconds function should be used.
Originally
fcint
is converted to adatetime.timedelta
object, but then to convert it to thefcint
value to seconds a corresponding member of the object is accessed. But when usingdatetime.timedelta.seconds
the returned value is always less than 1 day. Thus, to get a correct conversion to seconds for longfcints
thedatetime.timedelta.total_seconds
function should be used.