From: Ken Bloom Date: 2006-08-12T03:55:05+09:00 Subject: Re: ParseDate.parsedate() and Time.now() On Sat, 12 Aug 2006 01:10:58 +0900, Patrick Spence wrote: > irb(main):029:0> timeNow = Time.now().to_s() > => "Fri Aug 11 11:03:36 Central Daylight Time 2006" > > irb(main):030:0> ParseDate.parsedate(timeNow) > => [nil, 8, 11, 11, 3, 36, "Central", 5] > > Seems to me that it should return this: > => [2006, 8, 11, 11, 3, 36, "Central", 5] > > Or is it just me? It's you. Specifically, something's wrong with your locale, because "Central Daylight Time" should actually be replaced with the abbreviation "CDT". irb(main):001:0> timeNow = Time.now().to_s() => "Fri Aug 11 13:49:07 CDT 2006" irb(main):002:0> ParseDate.parsedate(timeNow) => [2006, 8, 11, 13, 49, 7, "CDT", 5] -- Ken Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/