Hi Greg,

On 3/15/06, Greg Lorriman <temp / lorriman.com> wrote:
> I am trying to efficiently get the date part of a Time object.

I've just been playing around with Time and Date a bit.  I have to ask: why?

You can get just the date part much more easily by using a Date object:

Date.parse("20-Oct-2005 04:04:00").to_s
=> "2005-10-20"

If you absolutely need a time object out of it, you can use 'facets':

require 'facet/date/to_time'
Date.parse("20-Oct-2005 04:04:00").to_time
=> Thu Oct 20 00:00:00 CEST 2005

HTH

- Dimitri