From: dblack@... Date: 2007-07-02T20:37:07+09:00 Subject: Re: why 1.hour doesn't work? Hi -- On Mon, 2 Jul 2007, Kenneth wrote: > this is a newbie question: > > so if it is in Ruby on Rails, then 1.hour and 1.hour.from_now both > work.... > now then, how come in irb, they both don't work? Because they're defined in a Rails library, not in the Ruby language. David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)