mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
386 B
22 lines
386 B
|
|
/*===
|
|
1970-01-01T00:00:00.000Z
|
|
0 Infinity
|
|
===*/
|
|
|
|
/* Midnight Jan 1, 1970 time value is +0 (check sign). E5.1 Section 15.9.1.1. */
|
|
|
|
function midnight1970Test() {
|
|
var d;
|
|
|
|
d = new Date(Date.UTC(1970, 0, 1, 0, 0, 0, 0));
|
|
print(d.toISOString());
|
|
print(d.getTime(), 1 / d.getTime()); // 1/x to test sign
|
|
}
|
|
|
|
try {
|
|
midnight1970Test();
|
|
} catch (e) {
|
|
print(e.name);
|
|
}
|
|
|
|
|