linux-l: Neuer Eintrag im BeLUG Gaestebuch
Ralph Angenendt
ralph at strg-alt-entf.org
Di Jan 4 18:19:16 CET 2000
On Die, Jan 04, 2000 at 04:50:24 +0100, www-data wrote:
> Name : BF
> email: bcf.in-berlin.de
>
> Wer haette das gedacht? - Perl v. 5.004_04 ist Y2K-bugy.
> Pfui Larry! ;-)
> Demnach muesste die Datumangabe in unserem Gaestebuch
> das Jahr 100 anzeigen, weil Perl die Jahre seit 1900 hochzaehlt.
RTFM. Dort steht genau beschrieben, wie perl $year behandelt.
| ralph at shutdown ~> perldoc -f localtime
| =item localtime EXPR
|
| Converts a time as returned by the time function to a 9-element array
| with the time analyzed for the local time zone.
|
| [...]
|
| In particular this means that $mon has the range 0..11 and $wday has
| the range 0..6 with sunday as day 0. Also, $year is the number of
| years since 1900, that is, $year is 123 in year 2023.
;-)
Ralph
--
I can see an opening for the Four Lusers Of The Apocalypse... "I
didn't change anything", "My e-mail doesn't work", "I can't print"
and "Is the network broken?".
-- Paul Mc Auley <pmcauley at iol.ie> in ASR
Mehr Informationen über die Mailingliste linux-l