From: Lloyd Zusman Date: 2006-11-26T17:44:30+09:00 Subject: Re: Timestamp KDr2 writes: > Srinivas Sa writes: > >> My timestamps are HH:MM:SS,nnnn format.. I mentioned wrongly before... >> >> Srinivas Sa wrote: >>> How do i add two time stamps >>> >>> Time stamps are in the form of HH:MM:DD:SS,nnnn >>> >>> Used Time.parse to convert to Time and tried add ts1 + ts2 but it failed >>> saying no method. >>> >>> tried t1 + t1.to_i i am getting >>> >>> irb(main):013:0> p t1 + t2.to_i >>> RangeError: time + 1164507831.000000 out of Time range >>> from (irb):13:in `+' >>> from (irb):13 >>> >>> can somebody help me out? > > So what do you want to get? > eg,(the year 2006)+((the year 2007),you want to get (the year 4013)? I think it would be more like this, which is a perfectly meaningful calculation: (the date 2006.11.26) + (2007 years, 0 months, 0 days) to get (the date 4013.11.26) -- Lloyd Zusman ljz@asfast.com God bless you.