inaccuracy in the time module

Paul Rubin http
Mon Sep 4 16:53:13 EDT 2006


alf <ask at me> writes:
>  >>> t=time()
>  >>> mktime(gmtime(t))-t
> 17999.680048942566
> why there is a difference?

time() is a floating point number with fractional seconds.
gmtime()'s resolution is one second.



More information about the Python-list mailing list