> You will have a Time object (do ri Time to know more), on which you
> can do arithmetic. Basically, if you subtract a time from another, you
> will obtain the difference in seconds.
>

Hi
you said, Substract a time from another, yes thats one i want ..

So bellow works perfect

t=Time::parse(remote_date+' '+remote_time)
t1=Time::parse(current_date+' '+current_time)
puts t
puts t1


difference_in_time = (t1 - t).to_i

puts difference_in_time

thanks

-- 
Posted via http://www.ruby-forum.com/.