in reply to Strange Date/Time

The months returned from localtime are in the range 0..11, so you need to add +1 to get a human rep. This apparently weird convention comes from C, and is useful for indexing months in 0-based arrays in C and Perl. The $wday is 0-based as well. The year offset is harder to justify and IIRC this will be corrected in Perl6.

-Mark

Replies are listed 'Best First'.
Re: Re: Strange Date/Time
by Anonymous Monk on Jun 17, 2002 at 16:45 UTC
    Absolutely perfect... that explains everything. Thank you very much Mark !