chhotii: (Default)
[personal profile] chhotii
Oh, I see. yeah, this would be month 8 if you number the months starting with 0. Script didn't exist in January... so I didn't notice that.

Date: 2009-09-30 02:35 pm (UTC)
ceo: (Default)
From: [personal profile] ceo
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.

Date: 2009-10-05 01:35 am (UTC)
From: [identity profile] achinhibitor.livejournal.com
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:"

Profile

chhotii: (Default)
chhotii

July 2023

S M T W T F S
      1
2345678
9101112131415
16 171819202122
23 242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 20th, 2025 11:54 am
Powered by Dreamwidth Studios