From: Peter Szinek Date: 2008-11-27T21:05:07+09:00 Subject: Re: To get time differnece in hours between two time values --Apple-Mail-4-372494063 Content-Type: text/plain; charset=ISO-8859-2; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable On 2008.11.27., at 12:03, Robert Dober wrote: > On Thu, Nov 27, 2008 at 7:57 AM, Florian A=DFmann > wrote: >> (Time.now - incidents.first.created_on) / 1.hour > I do not think that 1 responds to that message. Neither do I... However, if you are using Rails and ok with requiring active_support, =20= that enables 1.hour for you. > but using 3600 instead should do the trick. In this case I'd vote for this option. Cheers, Peter ___ http://www.rubyrailways.com http://scrubyt.org= --Apple-Mail-4-372494063--