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-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. 27th, 2025 12:09 pm
Powered by Dreamwidth Studios