From: LAMBEAU Bernard Date: 2009-01-09T20:39:26+09:00 Subject: Re: Seconds between two dates I think that the following works: (Time.now-Time.gm(2009,"may",8,17,00,00)).to_i blambeau On Fri, Jan 9, 2009 at 12:29 PM, fReDiNi wrote: > How could I get the seconds between two dates ion Ruby? > > I need the seconds remaining from the current date and a date in the > future. > > date1: current date, for example 2009-01-09 17:00:00 > date 2 : 2009-05-08 17:00:00 > > > How could I get the seconds between these two dates?. > > > Thanks. > >