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

RE: [cobalt-users] Y2K bug with perl



http://www.elmbronze.co.uk/year2000/perlprob.htm
Something to consider

--
Dan Kriwitsky


> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Douglas
> MacDougall
> Sent: Friday, December 31, 1999 5:40 PM
> To: cobalt-users@xxxxxxxxxxxxxxx
> 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
>