[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Y2K perl snag!



|$year = $year % 100;      # get the real "years since last beginning of
|                          # the century"
I would use: $year = sprintf("%02d", $year % 100); Other wise you will get
dates like this 21/11/0, unless ofcourse you use printf later.

Leonid Igolnik aka LiM


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il