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

Re: [MacPerl] Millenium Bug (was: re: newbie alert :-) question on the date thing...)



Perl *IS* y2k compliant.  It may seem to return a 2 digit value for the 
year, but it is actually returning year - 1900.  So, any date 2000 or 
greater will return a 3 digit number.....

Nam-June Joe

On Fri, 15 Aug 1997, Alex Satrapa wrote:

> At 16:46 +1000 on 15/8/97, Paul Evad wrote:
> >  $parse{"y"}=$year;
> >  if($year>67) {$parse{"Y"}="19$year"} else {$parse{"Y"}="20$year"};
> >  #get day
> 
> Which of course prompts me to ask... is it Unix, MacOS, Perl or MacPerl
> that limits the year to 2 digits?
> 
> At what level would one need to make a "fix" to get the year to return
> *all* the digits... or are we once again fighting the 32bit limit here?
> (*all* the digits, not "all four")
> 
> A 64 bit time field would give us a few more years to play with... but I
> suppose I'm tilting at windmills already...
> 
> -Alex
> 
> Windows 95: n. 32 bit extensions and a graphical shell for a 16 bit patch
> to an 8 bit operating system originally coded for a 4 bit microprocessor,
> written by a 2 bit company.
> 
> 
> 
> ***** Want to unsubscribe from this list?
> ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch
> 

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