From: Michael Hollins Date: 2007-09-11T10:05:05+09:00 Subject: Re: Time question 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. > Phlip's point was that you can use active_support without using rails: gem install activesupport cheers, mick