Lines Matching refs:Date
67 util.printd('mm', new Date(undefined));
73 var d1 = new Date(2014, 06, 04, 15, 59, 58);
104 TestOneFormat("mm/dd/yyyy", new Date(1850, 0, 1));
105 TestOneFormat("mm/dd/yyyy", new Date(2525, 11, 31));
117 // Date with year 0.
119 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(0, 06, 04, 15, 59, 58));
120 // Date with month 20.
121 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 20, 04, 15, 59, 58));
122 // Date with day 100.
123 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 20, 100, 15, 59, 58));
124 // Date with hour 50
125 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 06, 04, 50, 59, 58));
126 // Date with minute 1234.
127 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 06, 04, 15, 1234, 58));
128 // Date with second 65.
129 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 06, 04, 15, 59, 65));
130 // Date with April 31th.
131 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 03, 31, 15, 59, 58));
132 // Date with February 30th.
133 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 01, 30, 15, 59, 58));
134 // Date with negative year.
137 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(-1, 06, 04, 15, 59, 58));
138 // Date with negative month.
139 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, -1, 30, 15, 59, 58));
140 // Date with negative day.
141 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 06, -1, 15, 59, 58));
142 // Date with negative hour.
143 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 06, 04, -1, 59, 58));
144 // Date with negative minute.
145 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 06, 04, 15, -1, 58));
146 // Date with negative second.
147 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 06, 04, 15, 59, -1));