Am 11.11.2012 19:57, schrieb Ferdous ara:
> So bellow works perfect
>
> t=Time::parse(remote_date+' '+remote_time)
> t1=Time::parse(current_date+' '+current_time)

Simply use `t1 = Time.new', which returns the current system time.

> puts t
> puts t1
>
>
> difference_in_time = (t1 - t).to_i

The `to_i' seems unnecessary to me.

> puts difference_in_time


-- 
<https://github.com/stomar/>