From: EB Date: 2006-10-24T21:50:10+09:00 Subject: Re: adding times Ola Bini wrote: > EB wrote: >> Is there an easy way to add specific hours and minutes to a >> given time? I have a feeling this is easy to do, I just don't >> know how. > > I'm not sure I understand exactly what you're trying to do, but > something like this: > > class Fixnum > def minutes > self*60 > end > def hours > self*3600 > end > end > > Time.now + 7.minutes > x = Time.now > x += 13.hours + 17.minutes Nice! Thanks! > Something like this can be found in Facets too. I had no idea about Ruby Facets, I just google for it, thanks for mentioning it. There is so much to learn, and such little time!! (love learning though) eb