Q: finding distance between 2 time's

Nobody nobody at nowhere.com
Mon Jun 29 22:17:39 CEST 2009


On Mon, 29 Jun 2009 19:15:08 +0000, John Gordon wrote:

>> >     if time_difference < 3601:
> 
>> That's a potential off-by-one error. [...] The right test is:
> 
>>     if time_difference <= 3600:
> 
> Aren't those two comparisons the same?

Not if time_difference is a float.




More information about the Python-list mailing list