From: Wilson Bilkovich Date: 2006-01-18T01:58:22+09:00 Subject: Re: Time Diff Module On 1/17/06, David Clements wrote: > Anyone know of a module out there that will encapsulate differences in time? > > Ideally I would want something like this: > > d1 = DateTime.now + 2.hours + 2.minutes > d2 = DateTime.now > > diff = d1-d2 > > > puts "Diff: #{diff.hours}:#{diff.minutes}" > > > >> Diff: 2:02 > > I have searched for examples and all of them seem to be doing this manually. > > Dave Runt may have what you're looking for: http://runt.rubyforge.org/ Tutorial: http://runt.rubyforge.org/doc/files/doc/tutorial_te_rdoc.html