Front page | perl.perl5.porters |
Postings from March 2000
Re: [ID 20000307.005] Date Problem
Thread Previous
|
Thread Next
From:
Tom Christiansen
Date:
March 7, 2000 08:40
Subject:
Re: [ID 20000307.005] Date Problem
Message ID:
21142.952447213@chthon
>$weekday = (Sun,Mon,Tue,Wed,Thur,Fri,Sat)[(localtime)[6]];
Good.
>$month =
>(January,February,March,April,May,June,July,August,September,October,Novembe
>r,December)[(localtime)[3]];
Good.
>$day =
>(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,
>29,30,31)[(localtime)[3]];
That's not what localtime is documented to do. Some are offsets,
some aren't.
--tom
Thread Previous
|
Thread Next