in reply to (Ovid) Re: Don't blindly recommend code
in thread Don't blindly recommend code
The best part is subtracting 100 from $year then adding 2000, but only if it's greater than 99 or less than 2000. Classic.
It's like Dostoyevsky wrote Perl -- paid by the line, a torturous and twisty romp through the mind of a killer.
(For people who don't know why that's wrong, gmtime and localtime and such return the year component as the number of years since 1900.)
|
|---|