From: "R.. Kumar 1.9.1 OSX" Date: 2010-07-13T14:15:14+09:00 Subject: Re: while loop end action John Crichton wrote: > @init_time = Time.now.to_f > @twomin = @init_time + 120 > Thanks Is there any specific reason you are doing to_f. You can use to_i to get seconds since epoch too. You can also just say: Time.now + 120 This page might help you: http://www.tutorialspoint.com/ruby/ruby_date_time.htm -- Posted via http://www.ruby-forum.com/.