From: Paul Lutus Date: 2006-11-27T06:20:11+09:00 Subject: Re: Timestamp dblack@wobblini.net wrote: / ... > You might find it interesting to look into some of the date/time > extensions in ActiveSupport, the utility library that ships with > Rails. You get things like: > > 20.hours # 72000 (# of seconds in 20 hours) Such things are easy enough to add to Fixnum: class Fixnum def hours return self * 3600 end def minutes return self * 60 end end This avoids finding and adapting an entire library for such handy but simple extensions. -- Paul Lutus http://www.arachnoid.com