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/rderde at irelands-web.ie
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!