On Thu, 09 Dec 1999, John Seifarth wrote:

> I don't know perl, but as I was perusing the diald.monthly source, I
> noticed the following on line 23:
> 
>       $year = 1900 + $time[5];
> 
> Now doesn't this look suspiciously like a Y2K problem?
> 
> What should be done so that it works 20 days from now?

Actually no.  Thats the proper, Y2K Compliant way to do that.

The broken way would be '$year = 19 . $time[5]'; which would start
displaying '19100' in the Y2K.  $time[5] (part of the output from
localtime()) holds the number of years from 1900, so its Y2K safe if used in
that way.

>
> John
> __________________________________________________________________
> John Seifarth                               http://www.waw.be/waw/
> Words & Wires SPRL                                     [EMAIL PROTECTED]
> Computer Consulting & Language Services   Voice: (+) 32-2-660-3943
> 1160 Brussels, Belgium                      Fax: (+) 32-2-675-3922
> 

-- 
David Taylor
E-Mail: [EMAIL PROTECTED]   [Remove .spam]
ICQ:    268004
PGP:    [EMAIL PROTECTED]           [autoresponder]

PGP signature

Reply via email to