From: Glen Holcomb Date: 2007-09-11T01:50:27+09:00 Subject: Re: Time question ------=_Part_11152_25711347.1189443021301 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/10/07, joep wrote: > > On Sep 10, 10:03 am, Phlip wrote: > > joep wrote: > > > I am writing a small piece that will include a date that needs to be > > > compared to the current time. > > > > > EX. a = Time.now > > > b = db_cert_date + (72 months) > > > > Rails's ActiveSupport package lets you say some_date + 72.months. It's > that > > simple; the secret unit of exchange is probably seconds. > > > > If this were Brand X, using another platform's low-level library would > be > > eternal torment, but this is Ruby, so just try require 'active_support'! > > > > -- > > Phlip > > Only problem is I'm not using rails. Just straight ruby as a cgi. > > > You don't have to be using rails you just need the active_support gem installed. gem install activesupport After that just require 'active_support' as Phlip said. -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_11152_25711347.1189443021301--