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

Re: [MacPerl] 1900-2000 problem.



> As most programming languages do, Perl returns the years since 1900.  So in
> the year 2000, it will return the value 100 for the year.  All is well in
> perldom, and adding 1900 to get the year will work in the year 2000 and
> beyond.

Its amazing how many managers and customers grep
through code looking for 1900 and date related code
these days.

Do yourself a favor and whenever you ad in 1900 put
a comment right after it. 
    $year += 1900;  ## Not a millenium problem 

It saves so much time :)

Lata,
Phil

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch