Q: finding distance between 2 time's

John Gordon gordon at panix.com
Mon Jun 29 21:15:08 CEST 2009

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?

John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

More information about the Python-list mailing list