> On 7/19/06, Shuying Wang <shuying / gmail.com> wrote: > > On 7/19/06, Harold Hausman <hhausman / gmail.com> wrote: > > > irb(main):004:0> Time.parse "Wed Jul 19 19:47:57 Malay Peninsula > > > Standard Time 2012" > > > => Wed Jul 19 19:47:57 Malay Peninsula Standard Time 2006 > > > > irb(main):006:0> Time.parse("Wed Jul 19 19:47:57 Homer Simpson 2007") > > => Wed Jul 19 19:47:57 SGT 2006 > > irb(main):018:0> Time.parse("Wed Jul 19 19:47:57 SGT 2007") > > => Thu Jul 19 19:47:57 SGT 2007 > > > > So it's to do with the fact that you've got spaces in your timezone. > > Not exactly - it's even more picky than that. It looks like with > strings of the format > "Wed Jul 19 19:47:57 ANYTHING 2007", that anything is ignored unless > it is 'GMT' and the current TZ is used, but the year is accepted. But > if you have more than one string between the time and the year, then > everything is ignored and it uses the current year. > fwiw, I've swtiched to using Time.new.to_yaml and all my problems have gone away. Yes, even that strange itch. Highest Regards, -Harold p.s. now if only we could get this helicopter to land on that whale.