Q: finding distance between 2 time's

Scott David Daniels Scott.Daniels at Acm.Org
Mon Jun 29 16:30:13 EDT 2009


John Gordon wrote:
> In <023130ef$0$19421$c3e8da3 at news.astraweb.com> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
>>>     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?

Only if time_difference is an integer.

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list