From: "David A. Black" Date: 2005-11-13T03:35:11+09:00 Subject: Re: Converting between Time and DateTime Hi -- On Sun, 13 Nov 2005, Lloyd Zusman wrote: > What is the recommended method for converting between Time objects and > those of type DateTime? OK, let me try again. irb(main):068:0> t = Time.now => Sat Nov 12 13:33:08 EST 2005 irb(main):069:0> d = DateTime.parse(t.iso8601) => # irb(main):070:0> d.strftime("%c") => "Sat Nov 12 13:33:08 2005" irb(main):071:0> Time.parse(d.strftime("%c")) => Sat Nov 12 13:33:08 EST 2005 'parse' seems to be a good bet in both directions. David -- David A. Black dblack@wobblini.net