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

Re: [cobalt-users] Y2K bug with perl



Douglas,

That is not a bug in perl. It is suppose to return 100 so your scripts 
can tell the difference between Y2K and Y1K. Otherwise, you will have a 
Y2K problem/bug. Believe it or not, it is in the documentation of Perl 
regarding what localtime will return for Y2K.

On a lighter note...
No accidential missile launches have been reported - yet.

Kar Mui
webslave

>> 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
>