So the Mayans didn't enable Javascript?
-
The world will actually end at 1am on Saturday the 13th of September in the year 275760, according to the Javascript documentation.. http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.1[^] Quick test...
var endOfTheWorld = new Date();
endOfTheWorld.setTime(8640000000000000);
document.write(endOfTheWorld);"Sat Sep 13 275760 01:00:00 GMT+0100 (GMT Daylight Time)" :-D
-
The world will actually end at 1am on Saturday the 13th of September in the year 275760, according to the Javascript documentation.. http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.1[^] Quick test...
var endOfTheWorld = new Date();
endOfTheWorld.setTime(8640000000000000);
document.write(endOfTheWorld);"Sat Sep 13 275760 01:00:00 GMT+0100 (GMT Daylight Time)" :-D
But nothing in that code is determining the end; you are setting that value.
-
But nothing in that code is determining the end; you are setting that value.
Indeed, I'm setting the maximum valid value as specified in the documentation to determine the actual date/time. If you add 1 to that number it returns an Invalid Date exception. I didn't need to loop/test because for once I had actually read the manual! :-D
;-]