Hi --

On Sun, 13 Nov 2005, Lloyd Zusman wrote:

> What is the recommended method for converting between Time objects and
> those of type DateTime?

This is probably just a stepping-stone on the way to something more
elegant... but try this:

   require 'date'
   require 'time'

   t = Time.parse(DateTime.new.sec.to_s)

(Could we get all the time/date stuff unified and loaded by default?
Is that too much overhead?)


David

-- 
David A. Black
dblack / wobblini.net