From: Mohammad Date: 2006-04-26T22:44:26+09:00 Subject: Re: Adding time Logan Capaldo wrote: > On Apr 25, 2006, at 11:56 PM, Mohammad wrote: > >> -- >> Posted via http://www.ruby-forum.com/. >> > one_hour = 60 * 60 # sixty seconds per minute, 60 minutes to an hour > old_submit_time = $submit_time > $submit_time = Time.at($submit_time.to_i + one_hour) > > if old_submit_time.hour + 1 == $submit_time.hour > puts "Yay!" > end Thanks Logan and Daniel -- Posted via http://www.ruby-forum.com/.