From: sto.mar@... Date: 2012-11-12T23:23:08+09:00 Subject: Re: Convert date to string 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 --