From: Timothy Hunter Date: 2006-06-10T09:21:49+09:00 Subject: Re: Comparing times? Eric Armstrong wrote: > This is driving me crazy. I know I > saw a way to do an "almost" comparison, > where "x == y +/- some delta". But I'm > hanged if I can find it. I've looked > everywhere... > > Well, test/unit has assert_in_delta. Is that what you're thinking of? In any case, it seems to me that (x - y).abs < delta would do the trick quite neatly.