From: Hassan Schroeder Date: 2011-01-22T02:51:41+09:00 Subject: Re: Timestamp difference On Fri, Jan 21, 2011 at 9:46 AM, Benjamin Fowl wrote: > How would you find out whether the time difference of one timestamp is > greater than 5? > > I've tried this > > (old_time - Time.now) > 5 and?? >> start = Time.now => Fri Jan 21 09:49:23 -0800 2011 >> stop = Time.now => Fri Jan 21 09:49:52 -0800 2011 >> (stop - start) => 29.616956 >> (stop - start) > 5 => true -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan