Re: inaccuracy in the time module

2006-09-04 Thread alf
Paul Rubin wrote: > alf <[EMAIL PROTECTED]> 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. thx, got it now. replacing with "t=round(tim

Re: inaccuracy in the time module

2006-09-04 Thread Paul Rubin
alf <[EMAIL PROTECTED]> 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. -- http://mail.python.org/mailman/listinfo/python-list