LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] [OT] Netscrape Javascript not Y2k compatible

[ILUG] [OT] Netscrape Javascript not Y2k compatible

kevin lyda kevin at suberic.net
Sat Jan 1 21:51:54 GMT 2000


"Robert Elliott (Admin)" wrote:
> Interesting. In perl, date returns year minus 1900, so conventional wisdom
> has it you add 1900. So was the javascript thingy in nescape written in
> perl, I wonder? Anyway, I'd guess that some idiot put in half a check;
> something along the lines of 'if year < 100 year += 1900'.
> 
> Not your traditional y2k bug, but more of some dope half-thinking about
> the millennium and implementing what our french cousins would call 'un
> solution demi-arsee'.

sigh.  it's not because of perl.

it's due to the way struct tm is in libc.  perl is just reproducing that
behaviour.

man localtime(3)

kevin
-- 
kevin at suberic.net                              Nutrition Facts
fork()'ed on 37058400		       Puns: 100% RDA  (% good puns: 0)




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell