From: Zev Blut Date: 2004-10-28T17:58:26+09:00 Subject: Re: Mysterious Date Parsing Failures: NaN Hello Curt, On Thu, 28 Oct 2004 17:23:59 +0900, Curt Sampson wrote: > [ Snip description of Date parsing error ] > > Here's the stacktrace, in this case I did a "Date.new(2003, 4, 11)": > > Exception: Couldn't parse date 2003-4-11 (11/Apr/2003): NaN > /usr/local/lib/ruby/1.8/date.rb:300:in `floor' > /usr/local/lib/ruby/1.8/date.rb:300:in `civil_to_jd' > /usr/local/lib/ruby/1.8/date.rb:568:in `valid_civil?' > /usr/local/lib/ruby/1.8/date.rb:590:in `new' > ./HttpLogRecord.rb:83:in `parse_apache_date' > ./HttpLogRecord.rb:36:in `parse' > ... > > This happens both with 1.8.1 and 1.8.2preview2. Any thoughts? That is quite odd, I cannot recreate it on my machine. Although, digging through the source code makes me think it might be a C library issue with your "math.h" implementation. Granted I am nowhere close to knowledgeable when it comes to this level of detail. So in order to help the ones in the know; What is your output when you type "ruby -v" ? Best, Zev