Lines Matching refs:Date
28 // Test date construction from other dates.
29 var date0 = new Date(1111);
30 var date1 = new Date(date0);
33 var date2 = new Date(date0.toString());
37 var date0 = Date.parse("Dec 25 1995 1:30");
38 var date1 = Date.parse("Dec 25, 1995 1:30");
39 var date2 = Date.parse("Dec 25 1995, 1:30");
40 var date3 = Date.parse("Dec 25, 1995, 1:30");
47 var dMax = new Date(8.64e15);
53 var dOverflow = new Date(8.64e15+1);
56 var dMin = new Date(-8.64e15);
62 var dUnderflow = new Date(-8.64e15-1);
66 // Tests inspired by js1_5/Date/regress-346363.js
69 var a = new Date();
74 var b = new Date();
80 var c = new Date();
85 var d = new Date();
90 // Date
91 var e = new Date();
96 var f = new Date();
102 var g = new Date();
107 var h = new Date();
113 var g = new Date();
118 var h = new Date();
125 var i = new Date();
130 var j = new Date();
137 var k = new Date();
142 var l = new Date();
148 // date without the timezone information.
150 var d = new Date();
158 var d = new Date();
160 assertDoesNotThrow("new Date(-0, -0, -0, -0, -0, -0. -0)");
161 assertDoesNotThrow("new Date(0x40000000, 0x40000000, 0x40000000," +
163 assertDoesNotThrow("new Date(-0x40000001, -0x40000001, -0x40000001," +
168 // LayoutTests/fast/js/script-tests/date-utc-timeclip.js:
170 assertEquals(8639999999999999, Date.UTC(275760, 8, 12, 23, 59, 59, 999));
171 assertEquals(8640000000000000, Date.UTC(275760, 8, 13));
172 assertTrue(isNaN(Date.UTC(275760, 8, 13, 0, 0, 0, 1)));
173 assertTrue(isNaN(Date.UTC(275760, 8, 14)));
175 assertEquals(Date.UTC(-271821, 3, 20, 0, 0, 0, 1), -8639999999999999);
176 assertEquals(Date.UTC(-271821, 3, 20), -8640000000000000);
177 assertTrue(isNaN(Date.UTC(-271821, 3, 19, 23, 59, 59, 999)));
178 assertTrue(isNaN(Date.UTC(-271821, 3, 19)));
181 // Test creation of large date values.
182 d = new Date(1969, 12, 1, 99999999999);
184 d = new Date(1969, 12, 1, -99999999999);
186 d = new Date(1969, 12, 1, Infinity);
188 d = new Date(1969, 12, 1, -Infinity);