Subject: Convert date to string
	Date: Mon 12 Nov 12 03:04:03AM +0900

Quoting Ferdous ara (lists / ruby-forum.com):

> Basically, want i want is :
> 
> if current time is 1 min or less then 1 min different then remote time
> everything is fine, but more then 1 min difference  is  a problem
> 
> any help will be great.
> 
> it would be great if i can do this without installing any  ruby module
> (which have to install )

The time-management functions that are included in Ruby are excellent.

Just do

require 'time'

and then

t=Time::parse(remote_date+' '+remote_time)

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. 

Carlo

-- 
  *         Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido / fluido.as             che bisogno ci sarebbe
  *               di parlare tanto di amore e di rettitudine? (Chuang-Tzu)