Daniel Sch?le wrote:
> Hello,
>
> I would like to calculate the difference between two times in seconds
> eg
>
> Fri Dec  2 03:12:19 2005
> Fri Dec  2 14:44:47 2005
>
> I took a look at Time.singleton_methods but they dont seem apropriate
> for this conversion
>
> since I am quite new to Ruby I dont know its libraries or where to search

require 'date'
(DateTime.parse("Fri Dec  2 03:12:19 2005") - DateTime.parse("Fri Dec
2 14:44:47 2005")) * 24 * 60 * 60  #=> -41548

Look up the Time, DateTime and Date classes on http://ruby-doc.org/core
for related info.

Cheers,
Dave