[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Y2K bug with perl
- Subject: Re: [cobalt-users] Y2K bug with perl
- From: "Robert Davis" <rdavis@xxxxxxxxxxx>
- Date: Sat Jan 1 06:23:39 2000
Ahoy
Yabbut ---
$test = localtime();
print $test;
prints "Sat Jan 1 09:17:14 2000"
no prob
Aloha
Davis
-----Original Message-----
From: Douglas MacDougall <mac@xxxxxxxxx>
To: cobalt-users@xxxxxxxxxxxxxxx <cobalt-users@xxxxxxxxxxxxxxx>
Date: Friday, December 31, 1999 5:37 PM
Subject: [cobalt-users] Y2K bug with perl
>> Y2k Japan. So far so good. Linux loaded. Windows loaded. Email
>downloaded..
>> now checking systems. Remote RaQ2 OK so far. Netstat OK .. ps aux ok..
>date
>> ok.
>
>
>Just found a bug.. probably many people already had a handle on it.. but
>just in case.. if you use perl "localtime(time)"
>the year value will return 100.
>
>I had expected to get 00 and had implemented fixes for 00 but all my fixes
>failed because I got 100.. anyway.. only a few minor problems with that..
>but if you use it (I think good programmers actually suggest you DONT.. but
>anyway.. I am self taught :P) anyway.. if you use localtime fix it!
>
>Douglas MacDougall
>GNA.
>Japan
>
>
>_______________________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>http://list.cobalt.com/mailman/listinfo/cobalt-users
>