"David Douthitt" <DDouthitt / cuna.com> writes:

> Is there a simple straightforward one-liner of a way to convert a
> string to a Time instance?
> 
> I'd like something like this: given "Fri May 12 2000 10:48a" it woud
> return a Time instance.
> 
> t = Time.new
> t.set_string("Fri May 12 2000 10:48a")
> p t

  require 'parsedate'
  include ParseDate

  t = Time.local(*parsedate("Fri May 12 2000 10:48a")[0,6])
  p t  # => Fri May 12 10:48:00 CDT 2000


Dave