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

Re: [MacPerl] Y2K complience



Consider the following documentation from
http://www.macos.apple.com/macos/2000.html:

Re The MacOS:
>>
   The current date and time utilities use a 64 bit signed value, which
   covers dates from 30081 B.C. to 29940 A.D. For further reference, see
   the reference volume, Inside Macintosh Operating System Utilities .
   The testing process to verify the year 2000 capability of the Mac OS 
   is quite simple:
<<

Whether MacPerl's localtime() supports 64bit formats is a different
question.  The MacOS doesn't have a normal UNIX localtime() system
function, so it's being emulated in some way by MacPerl (or the
libraries against which it was linked when compiled), so you're not
really testing the MacOS's ability to handle 64-bit times...

-David

On Wed, 18 Jun 1997, Chris Nandor wrote:

> At 13.37 6/18/97, David T. McWherter wrote:
> >Hope that helped...And to confuse the issue even more, I believe
> >that times are all handled in 64-bit quantities now by the MacOS,
> >but I'm not 100% sure on that...
> 
> #!perl
> $\=$/;
> sub doTime {print scalar localtime(shift)}
> doTime((2**32) - 10);
> doTime(2**32);
> doTime(2**64);
> __END__
> Mon Feb  6 06:28:06 2040
> Mon Feb  6 06:28:15 2040
> Mon Feb  6 06:28:15 2040
> 
> 
> --
> Chris Nandor                 pudge@pobox.com                 http://pudge.net/
> %PGPKey=('B76E72AD',[1024,'08 24 09 0B CE 73 CA 10  1F F7 7F 13 81 80 B6 B6'])
> 
> 


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