1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
test();
function iso(d) { new Date(d).toISOString() }
function check(s,millis) { iso(millis); }
function dd(year, month, day, hour, minute, second, millis) {
return Date.UTC(year, 1, day, hour, minute, second, millis);
}
function test() {
try {
check("", 20092353211)
check("", 2009)
check("", 0)
check("", dd(BUGNUMBER, 7, 23, 19, 53, 21, 1))
} catch (e) {}
}
var BUGNUMBER = "10278";
test()
|