Some memory in the back of my mind tells I've once read a rant about storing time that argued you should never store time in floating point variables. My memory seems to think the rant convinced me and it does indeed seem better to store time in integers so that time doesn't go and change little bits due to rounding etc. and indeed the C library seems to stick to that, mostly (
difftime() returns a double for example).
When looking at Python the stdlib
datetime module seems to do this too. However ofter people scoff at the
datetime module and recommend the use of
mxDateTime instead, it is a lot better supposedly. But looking at how it stores time it seems to use
double values interally.
So I am wondering, if
mxDateTime gets away with storing time as floating points is there really a disadvantage to it? Is there a point to avoiding floating point numbers while handling time?