Oh yes, that throws me on a regular basis, that and the years starting at 1900. The C standard library handles both of these things correctly, so I don't know what Larry Wall was smoking.
Well, Unix always uses the convention that months are numbered starting with 0, so you can index into an array of strings to get the name of the month. E.g., for "localtime": "$mon is the month itself, in the range 0..11 with 0 indicating January and 11 indicating December. This makes it easy to get a month name from a list:"
no subject
Date: 2009-09-30 02:35 pm (UTC)no subject
Date: 2009-10-05 01:35 am (UTC)