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

Robert Elliott (Admin) rde at leviathan.irelands-web.ie
Sat Jan 1 17:39:38 GMT 2000


On Sat, 1 Jan 2000, Miles wrote:

> I was just messing around a bit with some javascript here, and noticed
> that if you do something like the following:
> 
> now = new Date();
> var CurYear = now.getYear();
> document.write(CurYear);
> 
> It will report the current year as 2000 in IExplode, but as 100 in
> Netscrape 4.5. Strange, huh?

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

As an offtopic aside: follow the link and ask youself which ilugger's .sig
springs immediately to the skull?

http://www.russiaworld.com/wwwboard7/messages/503.html


robert

Robert Elliott             http://www.irelands-web.ie/rde
rde at irelands-web.ie 





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