From: Rob Biedenharn Date: 2008-01-04T03:27:45+09:00 Subject: Re: Time.gm(1969) chokes on Windows If you want a date, use Date. (require 'date') It handled any date you'd care to throw at it and 1969/1970 is not an issue. -Rob On Jan 3, 2008, at 1:20 PM, James Tucker wrote: > It may or may not be related, but check in: > > Control Panel -> Regional and Language Options -> Regional Options - > > Customize... -> Date -> "Calendar" > > You'll find the default time ranges for date assumptions. > > It's quite likely that ruby doesn't use these though. > > On 3 Jan 2008, at 14:12, Tim Ferrell wrote: > >> >> I was trying to sort out a YAML parsing issue on Windows XP SP 2 and >> traced it to Time.gm failing on pre-1970 dates ... this works fine on >> both Ubuntu Linux and my Mac... Any ideas or workarounds? >> >> Thanks! >> Tim Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com