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

Re: [MacPerl] Y2K compliance



At 7:44 AM 06.18.97 pudge@pobox.com (Chris Nandor) said:

>Please read the Perl FAQ:
>
>        http://www.perl.org/CPAN/doc/manual/html/pod/perlfaq.html
>        http://www.perl.org/CPAN/doc/manual/html/pod/perlfaq4/
>                Does_Perl_have_a_year_20_probl.html

Which says, essentially:

   Not unless you use Perl to create one. The date and time functions
   supplied with perl (gmtime and localtime) supply adequate information
   to determine the year well beyond 2000 (2038 is when trouble strikes).
   The year returned by these functions when used in an array context is
   the year minus 1900. For years between 1910 and 1999 this
   <EM>happens</EM> to be a 2-digit decimal number. To avoid the year
   2000 problem simply do not treat the year as a 2-digit number. It

See also:

    http://www.macos.apple.com/macos/2000.html
    http://devworld.apple.com/mkt/informed/appledirections/sep96/year2000.html

...which cover MacOS & Y2K issues.

Hope this helps

tpg


--
Tim Guinn                  | guinn@mail.utexas.edu
LAN Administrator          | http://www.utexas.edu/admin/purchasing/
UTexas @ Austin Purchasing | v 512.471.2855           f 512.471.7745



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