AdSR wrote:
> On Feb 2, 6:58 pm, Peter Bailey <pbai... / bna.com> wrote:
>>                       ^
>> (irb):1: Illegal octal digit
>> t = Time.local(2007,09,09,00,00)
>>                          ^
> 
> The problem is the leading zero. Time.local(2007, 9, 9, 0, 0) works
> fine.
> 
> Number literals with a zero at the beginning are interpreted as octal
> numbers. Since octal numbers only use digits 0..7, 9 is rejected (as
> would be 8).
> 
> HTH,
> AdSR

You're all brilliant. Thanks. Yes, when I re-looked into my book that 
was guiding me with this, I see that all of their sample don't have a 
leading zero.

-Peter

-- 
Posted via http://www.ruby-forum.com/.