4 CREATE TABLE TIMESTAMP_TBL (d1 timestamp(2) without time zone);
5 -- Test shorthand input values
6 -- We can't just "select" the results since they aren't constants; test for
7 -- equality instead. We can do that by running the test inside a transaction
8 -- block, within which the value of 'now' shouldn't change. We also check
9 -- that 'now' *does* change over a reasonable interval such as 100 msec.
10 -- NOTE: it is possible for this part of the test to fail if the transaction
11 -- block is entered exactly at local midnight; then 'now' and 'today' have
12 -- the same values and the counts will come out different.
13 INSERT INTO TIMESTAMP_TBL VALUES ('now');
21 INSERT INTO TIMESTAMP_TBL VALUES ('now');
22 INSERT INTO TIMESTAMP_TBL VALUES ('today');
23 INSERT INTO TIMESTAMP_TBL VALUES ('yesterday');
24 INSERT INTO TIMESTAMP_TBL VALUES ('tomorrow');
25 -- time zone should be ignored by this data type
26 INSERT INTO TIMESTAMP_TBL VALUES ('tomorrow EST');
27 INSERT INTO TIMESTAMP_TBL VALUES ('tomorrow zulu');
28 SELECT count(*) AS One FROM TIMESTAMP_TBL WHERE d1 = timestamp without time zone 'today';
34 SELECT count(*) AS Three FROM TIMESTAMP_TBL WHERE d1 = timestamp without time zone 'tomorrow';
40 SELECT count(*) AS One FROM TIMESTAMP_TBL WHERE d1 = timestamp without time zone 'yesterday';
46 SELECT count(*) AS One FROM TIMESTAMP_TBL WHERE d1 = timestamp(2) without time zone 'now';
53 DELETE FROM TIMESTAMP_TBL;
54 -- verify uniform transaction time within transaction block
56 INSERT INTO TIMESTAMP_TBL VALUES ('now');
63 INSERT INTO TIMESTAMP_TBL VALUES ('now');
70 SELECT count(*) AS two FROM TIMESTAMP_TBL WHERE d1 = timestamp(2) without time zone 'now';
77 DELETE FROM TIMESTAMP_TBL;
79 INSERT INTO TIMESTAMP_TBL VALUES ('-infinity');
80 INSERT INTO TIMESTAMP_TBL VALUES ('infinity');
81 INSERT INTO TIMESTAMP_TBL VALUES ('epoch');
82 -- Obsolete special values
83 INSERT INTO TIMESTAMP_TBL VALUES ('invalid');
84 ERROR: date/time value "invalid" is no longer supported
85 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('invalid');
87 INSERT INTO TIMESTAMP_TBL VALUES ('current');
88 ERROR: date/time value "current" is no longer supported
89 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('current');
91 -- Postgres v6.0 standard output format
92 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01 1997 PST');
93 INSERT INTO TIMESTAMP_TBL VALUES ('Invalid Abstime');
94 ERROR: date/time value "Invalid Abstime" is no longer supported
95 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('Invalid Abstime');
97 INSERT INTO TIMESTAMP_TBL VALUES ('Undefined Abstime');
98 ERROR: date/time value "Undefined Abstime" is no longer supported
99 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('Undefined Abstime');
101 -- Variations on Postgres v6.1 standard output format
102 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.000001 1997 PST');
103 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.999999 1997 PST');
104 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.4 1997 PST');
105 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.5 1997 PST');
106 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.6 1997 PST');
108 INSERT INTO TIMESTAMP_TBL VALUES ('1997-01-02');
109 INSERT INTO TIMESTAMP_TBL VALUES ('1997-01-02 03:04:05');
110 INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01-08');
111 INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01-0800');
112 INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01 -08:00');
113 INSERT INTO TIMESTAMP_TBL VALUES ('19970210 173201 -0800');
114 INSERT INTO TIMESTAMP_TBL VALUES ('1997-06-10 17:32:01 -07:00');
115 INSERT INTO TIMESTAMP_TBL VALUES ('2001-09-22T18:19:20');
116 -- POSIX format (note that the timezone abbrev is just decoration here)
117 INSERT INTO TIMESTAMP_TBL VALUES ('2000-03-15 08:14:01 GMT+8');
118 INSERT INTO TIMESTAMP_TBL VALUES ('2000-03-15 13:14:02 GMT-1');
119 INSERT INTO TIMESTAMP_TBL VALUES ('2000-03-15 12:14:03 GMT-2');
120 INSERT INTO TIMESTAMP_TBL VALUES ('2000-03-15 03:14:04 PST+8');
121 INSERT INTO TIMESTAMP_TBL VALUES ('2000-03-15 02:14:05 MST+7:00');
122 -- Variations for acceptable input formats
123 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 17:32:01 1997 -0800');
124 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 17:32:01 1997');
125 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 5:32PM 1997');
126 INSERT INTO TIMESTAMP_TBL VALUES ('1997/02/10 17:32:01-0800');
127 INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01 PST');
128 INSERT INTO TIMESTAMP_TBL VALUES ('Feb-10-1997 17:32:01 PST');
129 INSERT INTO TIMESTAMP_TBL VALUES ('02-10-1997 17:32:01 PST');
130 INSERT INTO TIMESTAMP_TBL VALUES ('19970210 173201 PST');
131 set datestyle to ymd;
132 INSERT INTO TIMESTAMP_TBL VALUES ('97FEB10 5:32:01PM UTC');
133 INSERT INTO TIMESTAMP_TBL VALUES ('97/02/10 17:32:01 UTC');
135 INSERT INTO TIMESTAMP_TBL VALUES ('1997.041 17:32:01 UTC');
136 INSERT INTO TIMESTAMP_TBL VALUES ('19970210 173201 America/New_York');
137 -- this fails (even though TZ is a no-op, we still look it up)
138 INSERT INTO TIMESTAMP_TBL VALUES ('19970710 173201 America/Does_not_exist');
139 ERROR: time zone "america/does_not_exist" not recognized
140 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('19970710 173201 America/D...
142 -- Check date conversion and date arithmetic
143 INSERT INTO TIMESTAMP_TBL VALUES ('1997-06-10 18:32:01 PDT');
144 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 17:32:01 1997');
145 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 11 17:32:01 1997');
146 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 12 17:32:01 1997');
147 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 13 17:32:01 1997');
148 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 14 17:32:01 1997');
149 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 15 17:32:01 1997');
150 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1997');
151 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 0097 BC');
152 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 0097');
153 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 0597');
154 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1097');
155 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1697');
156 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1797');
157 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1897');
158 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1997');
159 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 2097');
160 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 28 17:32:01 1996');
161 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 29 17:32:01 1996');
162 INSERT INTO TIMESTAMP_TBL VALUES ('Mar 01 17:32:01 1996');
163 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 30 17:32:01 1996');
164 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 1996');
165 INSERT INTO TIMESTAMP_TBL VALUES ('Jan 01 17:32:01 1997');
166 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 28 17:32:01 1997');
167 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 29 17:32:01 1997');
168 ERROR: date/time field value out of range: "Feb 29 17:32:01 1997"
169 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('Feb 29 17:32:01 1997');
171 INSERT INTO TIMESTAMP_TBL VALUES ('Mar 01 17:32:01 1997');
172 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 30 17:32:01 1997');
173 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 1997');
174 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 1999');
175 INSERT INTO TIMESTAMP_TBL VALUES ('Jan 01 17:32:01 2000');
176 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 2000');
177 INSERT INTO TIMESTAMP_TBL VALUES ('Jan 01 17:32:01 2001');
178 -- Currently unsupported syntax and ranges
179 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 -0097');
180 ERROR: time zone displacement out of range: "Feb 16 17:32:01 -0097"
181 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 -0097');
183 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 5097 BC');
184 ERROR: timestamp out of range: "Feb 16 17:32:01 5097 BC"
185 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 5097 BC')...
187 SELECT '' AS "64", d1 FROM TIMESTAMP_TBL;
189 ----+-----------------------------
192 | Thu Jan 01 00:00:00 1970
193 | Mon Feb 10 17:32:01 1997
194 | Mon Feb 10 17:32:01 1997
195 | Mon Feb 10 17:32:02 1997
196 | Mon Feb 10 17:32:01.4 1997
197 | Mon Feb 10 17:32:01.5 1997
198 | Mon Feb 10 17:32:01.6 1997
199 | Thu Jan 02 00:00:00 1997
200 | Thu Jan 02 03:04:05 1997
201 | Mon Feb 10 17:32:01 1997
202 | Mon Feb 10 17:32:01 1997
203 | Mon Feb 10 17:32:01 1997
204 | Mon Feb 10 17:32:01 1997
205 | Tue Jun 10 17:32:01 1997
206 | Sat Sep 22 18:19:20 2001
207 | Wed Mar 15 08:14:01 2000
208 | Wed Mar 15 13:14:02 2000
209 | Wed Mar 15 12:14:03 2000
210 | Wed Mar 15 03:14:04 2000
211 | Wed Mar 15 02:14:05 2000
212 | Mon Feb 10 17:32:01 1997
213 | Mon Feb 10 17:32:01 1997
214 | Mon Feb 10 17:32:00 1997
215 | Mon Feb 10 17:32:01 1997
216 | Mon Feb 10 17:32:01 1997
217 | Mon Feb 10 17:32:01 1997
218 | Mon Feb 10 17:32:01 1997
219 | Mon Feb 10 17:32:01 1997
220 | Mon Feb 10 17:32:01 1997
221 | Mon Feb 10 17:32:01 1997
222 | Mon Feb 10 17:32:01 1997
223 | Mon Feb 10 17:32:01 1997
224 | Tue Jun 10 18:32:01 1997
225 | Mon Feb 10 17:32:01 1997
226 | Tue Feb 11 17:32:01 1997
227 | Wed Feb 12 17:32:01 1997
228 | Thu Feb 13 17:32:01 1997
229 | Fri Feb 14 17:32:01 1997
230 | Sat Feb 15 17:32:01 1997
231 | Sun Feb 16 17:32:01 1997
232 | Tue Feb 16 17:32:01 0097 BC
233 | Sat Feb 16 17:32:01 0097
234 | Thu Feb 16 17:32:01 0597
235 | Tue Feb 16 17:32:01 1097
236 | Sat Feb 16 17:32:01 1697
237 | Thu Feb 16 17:32:01 1797
238 | Tue Feb 16 17:32:01 1897
239 | Sun Feb 16 17:32:01 1997
240 | Sat Feb 16 17:32:01 2097
241 | Wed Feb 28 17:32:01 1996
242 | Thu Feb 29 17:32:01 1996
243 | Fri Mar 01 17:32:01 1996
244 | Mon Dec 30 17:32:01 1996
245 | Tue Dec 31 17:32:01 1996
246 | Wed Jan 01 17:32:01 1997
247 | Fri Feb 28 17:32:01 1997
248 | Sat Mar 01 17:32:01 1997
249 | Tue Dec 30 17:32:01 1997
250 | Wed Dec 31 17:32:01 1997
251 | Fri Dec 31 17:32:01 1999
252 | Sat Jan 01 17:32:01 2000
253 | Sun Dec 31 17:32:01 2000
254 | Mon Jan 01 17:32:01 2001
257 -- Demonstrate functions and operators
258 SELECT '' AS "48", d1 FROM TIMESTAMP_TBL
259 WHERE d1 > timestamp without time zone '1997-01-02';
261 ----+----------------------------
263 | Mon Feb 10 17:32:01 1997
264 | Mon Feb 10 17:32:01 1997
265 | Mon Feb 10 17:32:02 1997
266 | Mon Feb 10 17:32:01.4 1997
267 | Mon Feb 10 17:32:01.5 1997
268 | Mon Feb 10 17:32:01.6 1997
269 | Thu Jan 02 03:04:05 1997
270 | Mon Feb 10 17:32:01 1997
271 | Mon Feb 10 17:32:01 1997
272 | Mon Feb 10 17:32:01 1997
273 | Mon Feb 10 17:32:01 1997
274 | Tue Jun 10 17:32:01 1997
275 | Sat Sep 22 18:19:20 2001
276 | Wed Mar 15 08:14:01 2000
277 | Wed Mar 15 13:14:02 2000
278 | Wed Mar 15 12:14:03 2000
279 | Wed Mar 15 03:14:04 2000
280 | Wed Mar 15 02:14:05 2000
281 | Mon Feb 10 17:32:01 1997
282 | Mon Feb 10 17:32:01 1997
283 | Mon Feb 10 17:32:00 1997
284 | Mon Feb 10 17:32:01 1997
285 | Mon Feb 10 17:32:01 1997
286 | Mon Feb 10 17:32:01 1997
287 | Mon Feb 10 17:32:01 1997
288 | Mon Feb 10 17:32:01 1997
289 | Mon Feb 10 17:32:01 1997
290 | Mon Feb 10 17:32:01 1997
291 | Mon Feb 10 17:32:01 1997
292 | Mon Feb 10 17:32:01 1997
293 | Tue Jun 10 18:32:01 1997
294 | Mon Feb 10 17:32:01 1997
295 | Tue Feb 11 17:32:01 1997
296 | Wed Feb 12 17:32:01 1997
297 | Thu Feb 13 17:32:01 1997
298 | Fri Feb 14 17:32:01 1997
299 | Sat Feb 15 17:32:01 1997
300 | Sun Feb 16 17:32:01 1997
301 | Sun Feb 16 17:32:01 1997
302 | Sat Feb 16 17:32:01 2097
303 | Fri Feb 28 17:32:01 1997
304 | Sat Mar 01 17:32:01 1997
305 | Tue Dec 30 17:32:01 1997
306 | Wed Dec 31 17:32:01 1997
307 | Fri Dec 31 17:32:01 1999
308 | Sat Jan 01 17:32:01 2000
309 | Sun Dec 31 17:32:01 2000
310 | Mon Jan 01 17:32:01 2001
313 SELECT '' AS "15", d1 FROM TIMESTAMP_TBL
314 WHERE d1 < timestamp without time zone '1997-01-02';
316 ----+-----------------------------
318 | Thu Jan 01 00:00:00 1970
319 | Tue Feb 16 17:32:01 0097 BC
320 | Sat Feb 16 17:32:01 0097
321 | Thu Feb 16 17:32:01 0597
322 | Tue Feb 16 17:32:01 1097
323 | Sat Feb 16 17:32:01 1697
324 | Thu Feb 16 17:32:01 1797
325 | Tue Feb 16 17:32:01 1897
326 | Wed Feb 28 17:32:01 1996
327 | Thu Feb 29 17:32:01 1996
328 | Fri Mar 01 17:32:01 1996
329 | Mon Dec 30 17:32:01 1996
330 | Tue Dec 31 17:32:01 1996
331 | Wed Jan 01 17:32:01 1997
334 SELECT '' AS one, d1 FROM TIMESTAMP_TBL
335 WHERE d1 = timestamp without time zone '1997-01-02';
337 -----+--------------------------
338 | Thu Jan 02 00:00:00 1997
341 SELECT '' AS "63", d1 FROM TIMESTAMP_TBL
342 WHERE d1 != timestamp without time zone '1997-01-02';
344 ----+-----------------------------
347 | Thu Jan 01 00:00:00 1970
348 | Mon Feb 10 17:32:01 1997
349 | Mon Feb 10 17:32:01 1997
350 | Mon Feb 10 17:32:02 1997
351 | Mon Feb 10 17:32:01.4 1997
352 | Mon Feb 10 17:32:01.5 1997
353 | Mon Feb 10 17:32:01.6 1997
354 | Thu Jan 02 03:04:05 1997
355 | Mon Feb 10 17:32:01 1997
356 | Mon Feb 10 17:32:01 1997
357 | Mon Feb 10 17:32:01 1997
358 | Mon Feb 10 17:32:01 1997
359 | Tue Jun 10 17:32:01 1997
360 | Sat Sep 22 18:19:20 2001
361 | Wed Mar 15 08:14:01 2000
362 | Wed Mar 15 13:14:02 2000
363 | Wed Mar 15 12:14:03 2000
364 | Wed Mar 15 03:14:04 2000
365 | Wed Mar 15 02:14:05 2000
366 | Mon Feb 10 17:32:01 1997
367 | Mon Feb 10 17:32:01 1997
368 | Mon Feb 10 17:32:00 1997
369 | Mon Feb 10 17:32:01 1997
370 | Mon Feb 10 17:32:01 1997
371 | Mon Feb 10 17:32:01 1997
372 | Mon Feb 10 17:32:01 1997
373 | Mon Feb 10 17:32:01 1997
374 | Mon Feb 10 17:32:01 1997
375 | Mon Feb 10 17:32:01 1997
376 | Mon Feb 10 17:32:01 1997
377 | Mon Feb 10 17:32:01 1997
378 | Tue Jun 10 18:32:01 1997
379 | Mon Feb 10 17:32:01 1997
380 | Tue Feb 11 17:32:01 1997
381 | Wed Feb 12 17:32:01 1997
382 | Thu Feb 13 17:32:01 1997
383 | Fri Feb 14 17:32:01 1997
384 | Sat Feb 15 17:32:01 1997
385 | Sun Feb 16 17:32:01 1997
386 | Tue Feb 16 17:32:01 0097 BC
387 | Sat Feb 16 17:32:01 0097
388 | Thu Feb 16 17:32:01 0597
389 | Tue Feb 16 17:32:01 1097
390 | Sat Feb 16 17:32:01 1697
391 | Thu Feb 16 17:32:01 1797
392 | Tue Feb 16 17:32:01 1897
393 | Sun Feb 16 17:32:01 1997
394 | Sat Feb 16 17:32:01 2097
395 | Wed Feb 28 17:32:01 1996
396 | Thu Feb 29 17:32:01 1996
397 | Fri Mar 01 17:32:01 1996
398 | Mon Dec 30 17:32:01 1996
399 | Tue Dec 31 17:32:01 1996
400 | Wed Jan 01 17:32:01 1997
401 | Fri Feb 28 17:32:01 1997
402 | Sat Mar 01 17:32:01 1997
403 | Tue Dec 30 17:32:01 1997
404 | Wed Dec 31 17:32:01 1997
405 | Fri Dec 31 17:32:01 1999
406 | Sat Jan 01 17:32:01 2000
407 | Sun Dec 31 17:32:01 2000
408 | Mon Jan 01 17:32:01 2001
411 SELECT '' AS "16", d1 FROM TIMESTAMP_TBL
412 WHERE d1 <= timestamp without time zone '1997-01-02';
414 ----+-----------------------------
416 | Thu Jan 01 00:00:00 1970
417 | Thu Jan 02 00:00:00 1997
418 | Tue Feb 16 17:32:01 0097 BC
419 | Sat Feb 16 17:32:01 0097
420 | Thu Feb 16 17:32:01 0597
421 | Tue Feb 16 17:32:01 1097
422 | Sat Feb 16 17:32:01 1697
423 | Thu Feb 16 17:32:01 1797
424 | Tue Feb 16 17:32:01 1897
425 | Wed Feb 28 17:32:01 1996
426 | Thu Feb 29 17:32:01 1996
427 | Fri Mar 01 17:32:01 1996
428 | Mon Dec 30 17:32:01 1996
429 | Tue Dec 31 17:32:01 1996
430 | Wed Jan 01 17:32:01 1997
433 SELECT '' AS "49", d1 FROM TIMESTAMP_TBL
434 WHERE d1 >= timestamp without time zone '1997-01-02';
436 ----+----------------------------
438 | Mon Feb 10 17:32:01 1997
439 | Mon Feb 10 17:32:01 1997
440 | Mon Feb 10 17:32:02 1997
441 | Mon Feb 10 17:32:01.4 1997
442 | Mon Feb 10 17:32:01.5 1997
443 | Mon Feb 10 17:32:01.6 1997
444 | Thu Jan 02 00:00:00 1997
445 | Thu Jan 02 03:04:05 1997
446 | Mon Feb 10 17:32:01 1997
447 | Mon Feb 10 17:32:01 1997
448 | Mon Feb 10 17:32:01 1997
449 | Mon Feb 10 17:32:01 1997
450 | Tue Jun 10 17:32:01 1997
451 | Sat Sep 22 18:19:20 2001
452 | Wed Mar 15 08:14:01 2000
453 | Wed Mar 15 13:14:02 2000
454 | Wed Mar 15 12:14:03 2000
455 | Wed Mar 15 03:14:04 2000
456 | Wed Mar 15 02:14:05 2000
457 | Mon Feb 10 17:32:01 1997
458 | Mon Feb 10 17:32:01 1997
459 | Mon Feb 10 17:32:00 1997
460 | Mon Feb 10 17:32:01 1997
461 | Mon Feb 10 17:32:01 1997
462 | Mon Feb 10 17:32:01 1997
463 | Mon Feb 10 17:32:01 1997
464 | Mon Feb 10 17:32:01 1997
465 | Mon Feb 10 17:32:01 1997
466 | Mon Feb 10 17:32:01 1997
467 | Mon Feb 10 17:32:01 1997
468 | Mon Feb 10 17:32:01 1997
469 | Tue Jun 10 18:32:01 1997
470 | Mon Feb 10 17:32:01 1997
471 | Tue Feb 11 17:32:01 1997
472 | Wed Feb 12 17:32:01 1997
473 | Thu Feb 13 17:32:01 1997
474 | Fri Feb 14 17:32:01 1997
475 | Sat Feb 15 17:32:01 1997
476 | Sun Feb 16 17:32:01 1997
477 | Sun Feb 16 17:32:01 1997
478 | Sat Feb 16 17:32:01 2097
479 | Fri Feb 28 17:32:01 1997
480 | Sat Mar 01 17:32:01 1997
481 | Tue Dec 30 17:32:01 1997
482 | Wed Dec 31 17:32:01 1997
483 | Fri Dec 31 17:32:01 1999
484 | Sat Jan 01 17:32:01 2000
485 | Sun Dec 31 17:32:01 2000
486 | Mon Jan 01 17:32:01 2001
489 SELECT '' AS "54", d1 - timestamp without time zone '1997-01-02' AS diff
490 FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
492 ----+----------------------------------------
494 | @ 39 days 17 hours 32 mins 1 sec
495 | @ 39 days 17 hours 32 mins 1 sec
496 | @ 39 days 17 hours 32 mins 2 secs
497 | @ 39 days 17 hours 32 mins 1.4 secs
498 | @ 39 days 17 hours 32 mins 1.5 secs
499 | @ 39 days 17 hours 32 mins 1.6 secs
501 | @ 3 hours 4 mins 5 secs
502 | @ 39 days 17 hours 32 mins 1 sec
503 | @ 39 days 17 hours 32 mins 1 sec
504 | @ 39 days 17 hours 32 mins 1 sec
505 | @ 39 days 17 hours 32 mins 1 sec
506 | @ 159 days 17 hours 32 mins 1 sec
507 | @ 1724 days 18 hours 19 mins 20 secs
508 | @ 1168 days 8 hours 14 mins 1 sec
509 | @ 1168 days 13 hours 14 mins 2 secs
510 | @ 1168 days 12 hours 14 mins 3 secs
511 | @ 1168 days 3 hours 14 mins 4 secs
512 | @ 1168 days 2 hours 14 mins 5 secs
513 | @ 39 days 17 hours 32 mins 1 sec
514 | @ 39 days 17 hours 32 mins 1 sec
515 | @ 39 days 17 hours 32 mins
516 | @ 39 days 17 hours 32 mins 1 sec
517 | @ 39 days 17 hours 32 mins 1 sec
518 | @ 39 days 17 hours 32 mins 1 sec
519 | @ 39 days 17 hours 32 mins 1 sec
520 | @ 39 days 17 hours 32 mins 1 sec
521 | @ 39 days 17 hours 32 mins 1 sec
522 | @ 39 days 17 hours 32 mins 1 sec
523 | @ 39 days 17 hours 32 mins 1 sec
524 | @ 39 days 17 hours 32 mins 1 sec
525 | @ 159 days 18 hours 32 mins 1 sec
526 | @ 39 days 17 hours 32 mins 1 sec
527 | @ 40 days 17 hours 32 mins 1 sec
528 | @ 41 days 17 hours 32 mins 1 sec
529 | @ 42 days 17 hours 32 mins 1 sec
530 | @ 43 days 17 hours 32 mins 1 sec
531 | @ 44 days 17 hours 32 mins 1 sec
532 | @ 45 days 17 hours 32 mins 1 sec
533 | @ 45 days 17 hours 32 mins 1 sec
534 | @ 308 days 6 hours 27 mins 59 secs ago
535 | @ 307 days 6 hours 27 mins 59 secs ago
536 | @ 306 days 6 hours 27 mins 59 secs ago
537 | @ 2 days 6 hours 27 mins 59 secs ago
538 | @ 1 day 6 hours 27 mins 59 secs ago
539 | @ 6 hours 27 mins 59 secs ago
540 | @ 57 days 17 hours 32 mins 1 sec
541 | @ 58 days 17 hours 32 mins 1 sec
542 | @ 362 days 17 hours 32 mins 1 sec
543 | @ 363 days 17 hours 32 mins 1 sec
544 | @ 1093 days 17 hours 32 mins 1 sec
545 | @ 1094 days 17 hours 32 mins 1 sec
546 | @ 1459 days 17 hours 32 mins 1 sec
547 | @ 1460 days 17 hours 32 mins 1 sec
550 SELECT '' AS date_trunc_week, date_trunc( 'week', timestamp '2004-02-29 15:44:17.71393' ) AS week_trunc;
551 date_trunc_week | week_trunc
552 -----------------+--------------------------
553 | Mon Feb 23 00:00:00 2004
556 -- Test casting within a BETWEEN qualifier
557 SELECT '' AS "54", d1 - timestamp without time zone '1997-01-02' AS diff
559 WHERE d1 BETWEEN timestamp without time zone '1902-01-01'
560 AND timestamp without time zone '2038-01-01';
562 ----+----------------------------------------
564 | @ 39 days 17 hours 32 mins 1 sec
565 | @ 39 days 17 hours 32 mins 1 sec
566 | @ 39 days 17 hours 32 mins 2 secs
567 | @ 39 days 17 hours 32 mins 1.4 secs
568 | @ 39 days 17 hours 32 mins 1.5 secs
569 | @ 39 days 17 hours 32 mins 1.6 secs
571 | @ 3 hours 4 mins 5 secs
572 | @ 39 days 17 hours 32 mins 1 sec
573 | @ 39 days 17 hours 32 mins 1 sec
574 | @ 39 days 17 hours 32 mins 1 sec
575 | @ 39 days 17 hours 32 mins 1 sec
576 | @ 159 days 17 hours 32 mins 1 sec
577 | @ 1724 days 18 hours 19 mins 20 secs
578 | @ 1168 days 8 hours 14 mins 1 sec
579 | @ 1168 days 13 hours 14 mins 2 secs
580 | @ 1168 days 12 hours 14 mins 3 secs
581 | @ 1168 days 3 hours 14 mins 4 secs
582 | @ 1168 days 2 hours 14 mins 5 secs
583 | @ 39 days 17 hours 32 mins 1 sec
584 | @ 39 days 17 hours 32 mins 1 sec
585 | @ 39 days 17 hours 32 mins
586 | @ 39 days 17 hours 32 mins 1 sec
587 | @ 39 days 17 hours 32 mins 1 sec
588 | @ 39 days 17 hours 32 mins 1 sec
589 | @ 39 days 17 hours 32 mins 1 sec
590 | @ 39 days 17 hours 32 mins 1 sec
591 | @ 39 days 17 hours 32 mins 1 sec
592 | @ 39 days 17 hours 32 mins 1 sec
593 | @ 39 days 17 hours 32 mins 1 sec
594 | @ 39 days 17 hours 32 mins 1 sec
595 | @ 159 days 18 hours 32 mins 1 sec
596 | @ 39 days 17 hours 32 mins 1 sec
597 | @ 40 days 17 hours 32 mins 1 sec
598 | @ 41 days 17 hours 32 mins 1 sec
599 | @ 42 days 17 hours 32 mins 1 sec
600 | @ 43 days 17 hours 32 mins 1 sec
601 | @ 44 days 17 hours 32 mins 1 sec
602 | @ 45 days 17 hours 32 mins 1 sec
603 | @ 45 days 17 hours 32 mins 1 sec
604 | @ 308 days 6 hours 27 mins 59 secs ago
605 | @ 307 days 6 hours 27 mins 59 secs ago
606 | @ 306 days 6 hours 27 mins 59 secs ago
607 | @ 2 days 6 hours 27 mins 59 secs ago
608 | @ 1 day 6 hours 27 mins 59 secs ago
609 | @ 6 hours 27 mins 59 secs ago
610 | @ 57 days 17 hours 32 mins 1 sec
611 | @ 58 days 17 hours 32 mins 1 sec
612 | @ 362 days 17 hours 32 mins 1 sec
613 | @ 363 days 17 hours 32 mins 1 sec
614 | @ 1093 days 17 hours 32 mins 1 sec
615 | @ 1094 days 17 hours 32 mins 1 sec
616 | @ 1459 days 17 hours 32 mins 1 sec
617 | @ 1460 days 17 hours 32 mins 1 sec
620 SELECT '' AS "54", d1 as "timestamp",
621 date_part( 'year', d1) AS year, date_part( 'month', d1) AS month,
622 date_part( 'day', d1) AS day, date_part( 'hour', d1) AS hour,
623 date_part( 'minute', d1) AS minute, date_part( 'second', d1) AS second
624 FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
625 54 | timestamp | year | month | day | hour | minute | second
626 ----+----------------------------+------+-------+-----+------+--------+--------
627 | Thu Jan 01 00:00:00 1970 | 1970 | 1 | 1 | 0 | 0 | 0
628 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
629 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
630 | Mon Feb 10 17:32:02 1997 | 1997 | 2 | 10 | 17 | 32 | 2
631 | Mon Feb 10 17:32:01.4 1997 | 1997 | 2 | 10 | 17 | 32 | 1.4
632 | Mon Feb 10 17:32:01.5 1997 | 1997 | 2 | 10 | 17 | 32 | 1.5
633 | Mon Feb 10 17:32:01.6 1997 | 1997 | 2 | 10 | 17 | 32 | 1.6
634 | Thu Jan 02 00:00:00 1997 | 1997 | 1 | 2 | 0 | 0 | 0
635 | Thu Jan 02 03:04:05 1997 | 1997 | 1 | 2 | 3 | 4 | 5
636 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
637 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
638 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
639 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
640 | Tue Jun 10 17:32:01 1997 | 1997 | 6 | 10 | 17 | 32 | 1
641 | Sat Sep 22 18:19:20 2001 | 2001 | 9 | 22 | 18 | 19 | 20
642 | Wed Mar 15 08:14:01 2000 | 2000 | 3 | 15 | 8 | 14 | 1
643 | Wed Mar 15 13:14:02 2000 | 2000 | 3 | 15 | 13 | 14 | 2
644 | Wed Mar 15 12:14:03 2000 | 2000 | 3 | 15 | 12 | 14 | 3
645 | Wed Mar 15 03:14:04 2000 | 2000 | 3 | 15 | 3 | 14 | 4
646 | Wed Mar 15 02:14:05 2000 | 2000 | 3 | 15 | 2 | 14 | 5
647 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
648 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
649 | Mon Feb 10 17:32:00 1997 | 1997 | 2 | 10 | 17 | 32 | 0
650 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
651 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
652 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
653 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
654 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
655 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
656 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
657 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
658 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
659 | Tue Jun 10 18:32:01 1997 | 1997 | 6 | 10 | 18 | 32 | 1
660 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
661 | Tue Feb 11 17:32:01 1997 | 1997 | 2 | 11 | 17 | 32 | 1
662 | Wed Feb 12 17:32:01 1997 | 1997 | 2 | 12 | 17 | 32 | 1
663 | Thu Feb 13 17:32:01 1997 | 1997 | 2 | 13 | 17 | 32 | 1
664 | Fri Feb 14 17:32:01 1997 | 1997 | 2 | 14 | 17 | 32 | 1
665 | Sat Feb 15 17:32:01 1997 | 1997 | 2 | 15 | 17 | 32 | 1
666 | Sun Feb 16 17:32:01 1997 | 1997 | 2 | 16 | 17 | 32 | 1
667 | Sun Feb 16 17:32:01 1997 | 1997 | 2 | 16 | 17 | 32 | 1
668 | Wed Feb 28 17:32:01 1996 | 1996 | 2 | 28 | 17 | 32 | 1
669 | Thu Feb 29 17:32:01 1996 | 1996 | 2 | 29 | 17 | 32 | 1
670 | Fri Mar 01 17:32:01 1996 | 1996 | 3 | 1 | 17 | 32 | 1
671 | Mon Dec 30 17:32:01 1996 | 1996 | 12 | 30 | 17 | 32 | 1
672 | Tue Dec 31 17:32:01 1996 | 1996 | 12 | 31 | 17 | 32 | 1
673 | Wed Jan 01 17:32:01 1997 | 1997 | 1 | 1 | 17 | 32 | 1
674 | Fri Feb 28 17:32:01 1997 | 1997 | 2 | 28 | 17 | 32 | 1
675 | Sat Mar 01 17:32:01 1997 | 1997 | 3 | 1 | 17 | 32 | 1
676 | Tue Dec 30 17:32:01 1997 | 1997 | 12 | 30 | 17 | 32 | 1
677 | Wed Dec 31 17:32:01 1997 | 1997 | 12 | 31 | 17 | 32 | 1
678 | Fri Dec 31 17:32:01 1999 | 1999 | 12 | 31 | 17 | 32 | 1
679 | Sat Jan 01 17:32:01 2000 | 2000 | 1 | 1 | 17 | 32 | 1
680 | Sun Dec 31 17:32:01 2000 | 2000 | 12 | 31 | 17 | 32 | 1
681 | Mon Jan 01 17:32:01 2001 | 2001 | 1 | 1 | 17 | 32 | 1
684 SELECT '' AS "54", d1 as "timestamp",
685 date_part( 'quarter', d1) AS quarter, date_part( 'msec', d1) AS msec,
686 date_part( 'usec', d1) AS usec
687 FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
688 54 | timestamp | quarter | msec | usec
689 ----+----------------------------+---------+-------+----------
690 | Thu Jan 01 00:00:00 1970 | 1 | 0 | 0
691 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
692 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
693 | Mon Feb 10 17:32:02 1997 | 1 | 2000 | 2000000
694 | Mon Feb 10 17:32:01.4 1997 | 1 | 1400 | 1400000
695 | Mon Feb 10 17:32:01.5 1997 | 1 | 1500 | 1500000
696 | Mon Feb 10 17:32:01.6 1997 | 1 | 1600 | 1600000
697 | Thu Jan 02 00:00:00 1997 | 1 | 0 | 0
698 | Thu Jan 02 03:04:05 1997 | 1 | 5000 | 5000000
699 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
700 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
701 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
702 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
703 | Tue Jun 10 17:32:01 1997 | 2 | 1000 | 1000000
704 | Sat Sep 22 18:19:20 2001 | 3 | 20000 | 20000000
705 | Wed Mar 15 08:14:01 2000 | 1 | 1000 | 1000000
706 | Wed Mar 15 13:14:02 2000 | 1 | 2000 | 2000000
707 | Wed Mar 15 12:14:03 2000 | 1 | 3000 | 3000000
708 | Wed Mar 15 03:14:04 2000 | 1 | 4000 | 4000000
709 | Wed Mar 15 02:14:05 2000 | 1 | 5000 | 5000000
710 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
711 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
712 | Mon Feb 10 17:32:00 1997 | 1 | 0 | 0
713 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
714 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
715 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
716 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
717 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
718 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
719 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
720 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
721 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
722 | Tue Jun 10 18:32:01 1997 | 2 | 1000 | 1000000
723 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
724 | Tue Feb 11 17:32:01 1997 | 1 | 1000 | 1000000
725 | Wed Feb 12 17:32:01 1997 | 1 | 1000 | 1000000
726 | Thu Feb 13 17:32:01 1997 | 1 | 1000 | 1000000
727 | Fri Feb 14 17:32:01 1997 | 1 | 1000 | 1000000
728 | Sat Feb 15 17:32:01 1997 | 1 | 1000 | 1000000
729 | Sun Feb 16 17:32:01 1997 | 1 | 1000 | 1000000
730 | Sun Feb 16 17:32:01 1997 | 1 | 1000 | 1000000
731 | Wed Feb 28 17:32:01 1996 | 1 | 1000 | 1000000
732 | Thu Feb 29 17:32:01 1996 | 1 | 1000 | 1000000
733 | Fri Mar 01 17:32:01 1996 | 1 | 1000 | 1000000
734 | Mon Dec 30 17:32:01 1996 | 4 | 1000 | 1000000
735 | Tue Dec 31 17:32:01 1996 | 4 | 1000 | 1000000
736 | Wed Jan 01 17:32:01 1997 | 1 | 1000 | 1000000
737 | Fri Feb 28 17:32:01 1997 | 1 | 1000 | 1000000
738 | Sat Mar 01 17:32:01 1997 | 1 | 1000 | 1000000
739 | Tue Dec 30 17:32:01 1997 | 4 | 1000 | 1000000
740 | Wed Dec 31 17:32:01 1997 | 4 | 1000 | 1000000
741 | Fri Dec 31 17:32:01 1999 | 4 | 1000 | 1000000
742 | Sat Jan 01 17:32:01 2000 | 1 | 1000 | 1000000
743 | Sun Dec 31 17:32:01 2000 | 4 | 1000 | 1000000
744 | Mon Jan 01 17:32:01 2001 | 1 | 1000 | 1000000
747 SELECT '' AS "54", d1 as "timestamp",
748 date_part( 'isoyear', d1) AS isoyear, date_part( 'week', d1) AS week,
749 date_part( 'dow', d1) AS dow
750 FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
751 54 | timestamp | isoyear | week | dow
752 ----+----------------------------+---------+------+-----
753 | Thu Jan 01 00:00:00 1970 | 1970 | 1 | 4
754 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
755 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
756 | Mon Feb 10 17:32:02 1997 | 1997 | 7 | 1
757 | Mon Feb 10 17:32:01.4 1997 | 1997 | 7 | 1
758 | Mon Feb 10 17:32:01.5 1997 | 1997 | 7 | 1
759 | Mon Feb 10 17:32:01.6 1997 | 1997 | 7 | 1
760 | Thu Jan 02 00:00:00 1997 | 1997 | 1 | 4
761 | Thu Jan 02 03:04:05 1997 | 1997 | 1 | 4
762 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
763 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
764 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
765 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
766 | Tue Jun 10 17:32:01 1997 | 1997 | 24 | 2
767 | Sat Sep 22 18:19:20 2001 | 2001 | 38 | 6
768 | Wed Mar 15 08:14:01 2000 | 2000 | 11 | 3
769 | Wed Mar 15 13:14:02 2000 | 2000 | 11 | 3
770 | Wed Mar 15 12:14:03 2000 | 2000 | 11 | 3
771 | Wed Mar 15 03:14:04 2000 | 2000 | 11 | 3
772 | Wed Mar 15 02:14:05 2000 | 2000 | 11 | 3
773 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
774 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
775 | Mon Feb 10 17:32:00 1997 | 1997 | 7 | 1
776 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
777 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
778 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
779 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
780 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
781 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
782 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
783 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
784 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
785 | Tue Jun 10 18:32:01 1997 | 1997 | 24 | 2
786 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
787 | Tue Feb 11 17:32:01 1997 | 1997 | 7 | 2
788 | Wed Feb 12 17:32:01 1997 | 1997 | 7 | 3
789 | Thu Feb 13 17:32:01 1997 | 1997 | 7 | 4
790 | Fri Feb 14 17:32:01 1997 | 1997 | 7 | 5
791 | Sat Feb 15 17:32:01 1997 | 1997 | 7 | 6
792 | Sun Feb 16 17:32:01 1997 | 1997 | 7 | 0
793 | Sun Feb 16 17:32:01 1997 | 1997 | 7 | 0
794 | Wed Feb 28 17:32:01 1996 | 1996 | 9 | 3
795 | Thu Feb 29 17:32:01 1996 | 1996 | 9 | 4
796 | Fri Mar 01 17:32:01 1996 | 1996 | 9 | 5
797 | Mon Dec 30 17:32:01 1996 | 1997 | 1 | 1
798 | Tue Dec 31 17:32:01 1996 | 1997 | 1 | 2
799 | Wed Jan 01 17:32:01 1997 | 1997 | 1 | 3
800 | Fri Feb 28 17:32:01 1997 | 1997 | 9 | 5
801 | Sat Mar 01 17:32:01 1997 | 1997 | 9 | 6
802 | Tue Dec 30 17:32:01 1997 | 1998 | 1 | 2
803 | Wed Dec 31 17:32:01 1997 | 1998 | 1 | 3
804 | Fri Dec 31 17:32:01 1999 | 1999 | 52 | 5
805 | Sat Jan 01 17:32:01 2000 | 1999 | 52 | 6
806 | Sun Dec 31 17:32:01 2000 | 2000 | 52 | 0
807 | Mon Jan 01 17:32:01 2001 | 2001 | 1 | 1
811 SELECT '' AS to_char_1, to_char(d1, 'DAY Day day DY Dy dy MONTH Month month RM MON Mon mon')
814 -----------+------------------------------------------------------------------------------------------
817 | THURSDAY Thursday thursday THU Thu thu JANUARY January january I JAN Jan jan
818 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
819 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
820 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
821 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
822 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
823 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
824 | THURSDAY Thursday thursday THU Thu thu JANUARY January january I JAN Jan jan
825 | THURSDAY Thursday thursday THU Thu thu JANUARY January january I JAN Jan jan
826 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
827 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
828 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
829 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
830 | TUESDAY Tuesday tuesday TUE Tue tue JUNE June june VI JUN Jun jun
831 | SATURDAY Saturday saturday SAT Sat sat SEPTEMBER September september IX SEP Sep sep
832 | WEDNESDAY Wednesday wednesday WED Wed wed MARCH March march III MAR Mar mar
833 | WEDNESDAY Wednesday wednesday WED Wed wed MARCH March march III MAR Mar mar
834 | WEDNESDAY Wednesday wednesday WED Wed wed MARCH March march III MAR Mar mar
835 | WEDNESDAY Wednesday wednesday WED Wed wed MARCH March march III MAR Mar mar
836 | WEDNESDAY Wednesday wednesday WED Wed wed MARCH March march III MAR Mar mar
837 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
838 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
839 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
840 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
841 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
842 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
843 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
844 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
845 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
846 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
847 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
848 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
849 | TUESDAY Tuesday tuesday TUE Tue tue JUNE June june VI JUN Jun jun
850 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
851 | TUESDAY Tuesday tuesday TUE Tue tue FEBRUARY February february II FEB Feb feb
852 | WEDNESDAY Wednesday wednesday WED Wed wed FEBRUARY February february II FEB Feb feb
853 | THURSDAY Thursday thursday THU Thu thu FEBRUARY February february II FEB Feb feb
854 | FRIDAY Friday friday FRI Fri fri FEBRUARY February february II FEB Feb feb
855 | SATURDAY Saturday saturday SAT Sat sat FEBRUARY February february II FEB Feb feb
856 | SUNDAY Sunday sunday SUN Sun sun FEBRUARY February february II FEB Feb feb
857 | TUESDAY Tuesday tuesday TUE Tue tue FEBRUARY February february II FEB Feb feb
858 | SATURDAY Saturday saturday SAT Sat sat FEBRUARY February february II FEB Feb feb
859 | THURSDAY Thursday thursday THU Thu thu FEBRUARY February february II FEB Feb feb
860 | TUESDAY Tuesday tuesday TUE Tue tue FEBRUARY February february II FEB Feb feb
861 | SATURDAY Saturday saturday SAT Sat sat FEBRUARY February february II FEB Feb feb
862 | THURSDAY Thursday thursday THU Thu thu FEBRUARY February february II FEB Feb feb
863 | TUESDAY Tuesday tuesday TUE Tue tue FEBRUARY February february II FEB Feb feb
864 | SUNDAY Sunday sunday SUN Sun sun FEBRUARY February february II FEB Feb feb
865 | SATURDAY Saturday saturday SAT Sat sat FEBRUARY February february II FEB Feb feb
866 | WEDNESDAY Wednesday wednesday WED Wed wed FEBRUARY February february II FEB Feb feb
867 | THURSDAY Thursday thursday THU Thu thu FEBRUARY February february II FEB Feb feb
868 | FRIDAY Friday friday FRI Fri fri MARCH March march III MAR Mar mar
869 | MONDAY Monday monday MON Mon mon DECEMBER December december XII DEC Dec dec
870 | TUESDAY Tuesday tuesday TUE Tue tue DECEMBER December december XII DEC Dec dec
871 | WEDNESDAY Wednesday wednesday WED Wed wed JANUARY January january I JAN Jan jan
872 | FRIDAY Friday friday FRI Fri fri FEBRUARY February february II FEB Feb feb
873 | SATURDAY Saturday saturday SAT Sat sat MARCH March march III MAR Mar mar
874 | TUESDAY Tuesday tuesday TUE Tue tue DECEMBER December december XII DEC Dec dec
875 | WEDNESDAY Wednesday wednesday WED Wed wed DECEMBER December december XII DEC Dec dec
876 | FRIDAY Friday friday FRI Fri fri DECEMBER December december XII DEC Dec dec
877 | SATURDAY Saturday saturday SAT Sat sat JANUARY January january I JAN Jan jan
878 | SUNDAY Sunday sunday SUN Sun sun DECEMBER December december XII DEC Dec dec
879 | MONDAY Monday monday MON Mon mon JANUARY January january I JAN Jan jan
882 SELECT '' AS to_char_2, to_char(d1, 'FMDAY FMDay FMday FMMONTH FMMonth FMmonth FMRM')
885 -----------+--------------------------------------------------------------
888 | THURSDAY Thursday thursday JANUARY January january I
889 | MONDAY Monday monday FEBRUARY February february II
890 | MONDAY Monday monday FEBRUARY February february II
891 | MONDAY Monday monday FEBRUARY February february II
892 | MONDAY Monday monday FEBRUARY February february II
893 | MONDAY Monday monday FEBRUARY February february II
894 | MONDAY Monday monday FEBRUARY February february II
895 | THURSDAY Thursday thursday JANUARY January january I
896 | THURSDAY Thursday thursday JANUARY January january I
897 | MONDAY Monday monday FEBRUARY February february II
898 | MONDAY Monday monday FEBRUARY February february II
899 | MONDAY Monday monday FEBRUARY February february II
900 | MONDAY Monday monday FEBRUARY February february II
901 | TUESDAY Tuesday tuesday JUNE June june VI
902 | SATURDAY Saturday saturday SEPTEMBER September september IX
903 | WEDNESDAY Wednesday wednesday MARCH March march III
904 | WEDNESDAY Wednesday wednesday MARCH March march III
905 | WEDNESDAY Wednesday wednesday MARCH March march III
906 | WEDNESDAY Wednesday wednesday MARCH March march III
907 | WEDNESDAY Wednesday wednesday MARCH March march III
908 | MONDAY Monday monday FEBRUARY February february II
909 | MONDAY Monday monday FEBRUARY February february II
910 | MONDAY Monday monday FEBRUARY February february II
911 | MONDAY Monday monday FEBRUARY February february II
912 | MONDAY Monday monday FEBRUARY February february II
913 | MONDAY Monday monday FEBRUARY February february II
914 | MONDAY Monday monday FEBRUARY February february II
915 | MONDAY Monday monday FEBRUARY February february II
916 | MONDAY Monday monday FEBRUARY February february II
917 | MONDAY Monday monday FEBRUARY February february II
918 | MONDAY Monday monday FEBRUARY February february II
919 | MONDAY Monday monday FEBRUARY February february II
920 | TUESDAY Tuesday tuesday JUNE June june VI
921 | MONDAY Monday monday FEBRUARY February february II
922 | TUESDAY Tuesday tuesday FEBRUARY February february II
923 | WEDNESDAY Wednesday wednesday FEBRUARY February february II
924 | THURSDAY Thursday thursday FEBRUARY February february II
925 | FRIDAY Friday friday FEBRUARY February february II
926 | SATURDAY Saturday saturday FEBRUARY February february II
927 | SUNDAY Sunday sunday FEBRUARY February february II
928 | TUESDAY Tuesday tuesday FEBRUARY February february II
929 | SATURDAY Saturday saturday FEBRUARY February february II
930 | THURSDAY Thursday thursday FEBRUARY February february II
931 | TUESDAY Tuesday tuesday FEBRUARY February february II
932 | SATURDAY Saturday saturday FEBRUARY February february II
933 | THURSDAY Thursday thursday FEBRUARY February february II
934 | TUESDAY Tuesday tuesday FEBRUARY February february II
935 | SUNDAY Sunday sunday FEBRUARY February february II
936 | SATURDAY Saturday saturday FEBRUARY February february II
937 | WEDNESDAY Wednesday wednesday FEBRUARY February february II
938 | THURSDAY Thursday thursday FEBRUARY February february II
939 | FRIDAY Friday friday MARCH March march III
940 | MONDAY Monday monday DECEMBER December december XII
941 | TUESDAY Tuesday tuesday DECEMBER December december XII
942 | WEDNESDAY Wednesday wednesday JANUARY January january I
943 | FRIDAY Friday friday FEBRUARY February february II
944 | SATURDAY Saturday saturday MARCH March march III
945 | TUESDAY Tuesday tuesday DECEMBER December december XII
946 | WEDNESDAY Wednesday wednesday DECEMBER December december XII
947 | FRIDAY Friday friday DECEMBER December december XII
948 | SATURDAY Saturday saturday JANUARY January january I
949 | SUNDAY Sunday sunday DECEMBER December december XII
950 | MONDAY Monday monday JANUARY January january I
953 SELECT '' AS to_char_3, to_char(d1, 'Y,YYY YYYY YYY YY Y CC Q MM WW DDD DD D J')
956 -----------+-------------------------------------------------
959 | 1,970 1970 970 70 0 20 1 01 01 001 01 5 2440588
960 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
961 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
962 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
963 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
964 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
965 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
966 | 1,997 1997 997 97 7 20 1 01 01 002 02 5 2450451
967 | 1,997 1997 997 97 7 20 1 01 01 002 02 5 2450451
968 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
969 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
970 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
971 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
972 | 1,997 1997 997 97 7 20 2 06 23 161 10 3 2450610
973 | 2,001 2001 001 01 1 21 3 09 38 265 22 7 2452175
974 | 2,000 2000 000 00 0 20 1 03 11 075 15 4 2451619
975 | 2,000 2000 000 00 0 20 1 03 11 075 15 4 2451619
976 | 2,000 2000 000 00 0 20 1 03 11 075 15 4 2451619
977 | 2,000 2000 000 00 0 20 1 03 11 075 15 4 2451619
978 | 2,000 2000 000 00 0 20 1 03 11 075 15 4 2451619
979 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
980 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
981 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
982 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
983 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
984 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
985 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
986 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
987 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
988 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
989 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
990 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
991 | 1,997 1997 997 97 7 20 2 06 23 161 10 3 2450610
992 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
993 | 1,997 1997 997 97 7 20 1 02 06 042 11 3 2450491
994 | 1,997 1997 997 97 7 20 1 02 07 043 12 4 2450492
995 | 1,997 1997 997 97 7 20 1 02 07 044 13 5 2450493
996 | 1,997 1997 997 97 7 20 1 02 07 045 14 6 2450494
997 | 1,997 1997 997 97 7 20 1 02 07 046 15 7 2450495
998 | 1,997 1997 997 97 7 20 1 02 07 047 16 1 2450496
999 | 0,097 0097 097 97 7 01 1 02 07 047 16 3 1686042
1000 | 0,097 0097 097 97 7 01 1 02 07 047 16 7 1756536
1001 | 0,597 0597 597 97 7 06 1 02 07 047 16 5 1939157
1002 | 1,097 1097 097 97 7 11 1 02 07 047 16 3 2121778
1003 | 1,697 1697 697 97 7 17 1 02 07 047 16 7 2340924
1004 | 1,797 1797 797 97 7 18 1 02 07 047 16 5 2377448
1005 | 1,897 1897 897 97 7 19 1 02 07 047 16 3 2413972
1006 | 1,997 1997 997 97 7 20 1 02 07 047 16 1 2450496
1007 | 2,097 2097 097 97 7 21 1 02 07 047 16 7 2487021
1008 | 1,996 1996 996 96 6 20 1 02 09 059 28 4 2450142
1009 | 1,996 1996 996 96 6 20 1 02 09 060 29 5 2450143
1010 | 1,996 1996 996 96 6 20 1 03 09 061 01 6 2450144
1011 | 1,996 1996 996 96 6 20 4 12 53 365 30 2 2450448
1012 | 1,996 1996 996 96 6 20 4 12 53 366 31 3 2450449
1013 | 1,997 1997 997 97 7 20 1 01 01 001 01 4 2450450
1014 | 1,997 1997 997 97 7 20 1 02 09 059 28 6 2450508
1015 | 1,997 1997 997 97 7 20 1 03 09 060 01 7 2450509
1016 | 1,997 1997 997 97 7 20 4 12 52 364 30 3 2450813
1017 | 1,997 1997 997 97 7 20 4 12 53 365 31 4 2450814
1018 | 1,999 1999 999 99 9 20 4 12 53 365 31 6 2451544
1019 | 2,000 2000 000 00 0 20 1 01 01 001 01 7 2451545
1020 | 2,000 2000 000 00 0 20 4 12 53 366 31 1 2451910
1021 | 2,001 2001 001 01 1 21 1 01 01 001 01 2 2451911
1024 SELECT '' AS to_char_4, to_char(d1, 'FMY,YYY FMYYYY FMYYY FMYY FMY FMCC FMQ FMMM FMWW FMDDD FMDD FMD FMJ')
1027 -----------+-------------------------------------------------
1030 | 1,970 1970 970 70 0 20 1 1 1 1 1 5 2440588
1031 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1032 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1033 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1034 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1035 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1036 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1037 | 1,997 1997 997 97 7 20 1 1 1 2 2 5 2450451
1038 | 1,997 1997 997 97 7 20 1 1 1 2 2 5 2450451
1039 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1040 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1041 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1042 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1043 | 1,997 1997 997 97 7 20 2 6 23 161 10 3 2450610
1044 | 2,001 2001 001 01 1 21 3 9 38 265 22 7 2452175
1045 | 2,000 2000 000 00 0 20 1 3 11 75 15 4 2451619
1046 | 2,000 2000 000 00 0 20 1 3 11 75 15 4 2451619
1047 | 2,000 2000 000 00 0 20 1 3 11 75 15 4 2451619
1048 | 2,000 2000 000 00 0 20 1 3 11 75 15 4 2451619
1049 | 2,000 2000 000 00 0 20 1 3 11 75 15 4 2451619
1050 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1051 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1052 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1053 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1054 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1055 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1056 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1057 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1058 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1059 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1060 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1061 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1062 | 1,997 1997 997 97 7 20 2 6 23 161 10 3 2450610
1063 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1064 | 1,997 1997 997 97 7 20 1 2 6 42 11 3 2450491
1065 | 1,997 1997 997 97 7 20 1 2 7 43 12 4 2450492
1066 | 1,997 1997 997 97 7 20 1 2 7 44 13 5 2450493
1067 | 1,997 1997 997 97 7 20 1 2 7 45 14 6 2450494
1068 | 1,997 1997 997 97 7 20 1 2 7 46 15 7 2450495
1069 | 1,997 1997 997 97 7 20 1 2 7 47 16 1 2450496
1070 | 0,097 97 097 97 7 1 1 2 7 47 16 3 1686042
1071 | 0,097 97 097 97 7 1 1 2 7 47 16 7 1756536
1072 | 0,597 597 597 97 7 6 1 2 7 47 16 5 1939157
1073 | 1,097 1097 097 97 7 11 1 2 7 47 16 3 2121778
1074 | 1,697 1697 697 97 7 17 1 2 7 47 16 7 2340924
1075 | 1,797 1797 797 97 7 18 1 2 7 47 16 5 2377448
1076 | 1,897 1897 897 97 7 19 1 2 7 47 16 3 2413972
1077 | 1,997 1997 997 97 7 20 1 2 7 47 16 1 2450496
1078 | 2,097 2097 097 97 7 21 1 2 7 47 16 7 2487021
1079 | 1,996 1996 996 96 6 20 1 2 9 59 28 4 2450142
1080 | 1,996 1996 996 96 6 20 1 2 9 60 29 5 2450143
1081 | 1,996 1996 996 96 6 20 1 3 9 61 1 6 2450144
1082 | 1,996 1996 996 96 6 20 4 12 53 365 30 2 2450448
1083 | 1,996 1996 996 96 6 20 4 12 53 366 31 3 2450449
1084 | 1,997 1997 997 97 7 20 1 1 1 1 1 4 2450450
1085 | 1,997 1997 997 97 7 20 1 2 9 59 28 6 2450508
1086 | 1,997 1997 997 97 7 20 1 3 9 60 1 7 2450509
1087 | 1,997 1997 997 97 7 20 4 12 52 364 30 3 2450813
1088 | 1,997 1997 997 97 7 20 4 12 53 365 31 4 2450814
1089 | 1,999 1999 999 99 9 20 4 12 53 365 31 6 2451544
1090 | 2,000 2000 000 00 0 20 1 1 1 1 1 7 2451545
1091 | 2,000 2000 000 00 0 20 4 12 53 366 31 1 2451910
1092 | 2,001 2001 001 01 1 21 1 1 1 1 1 2 2451911
1095 SELECT '' AS to_char_5, to_char(d1, 'HH HH12 HH24 MI SS SSSS')
1098 -----------+----------------------
1102 | 05 05 17 32 01 63121
1103 | 05 05 17 32 01 63121
1104 | 05 05 17 32 02 63122
1105 | 05 05 17 32 01 63121
1106 | 05 05 17 32 01 63121
1107 | 05 05 17 32 01 63121
1109 | 03 03 03 04 05 11045
1110 | 05 05 17 32 01 63121
1111 | 05 05 17 32 01 63121
1112 | 05 05 17 32 01 63121
1113 | 05 05 17 32 01 63121
1114 | 05 05 17 32 01 63121
1115 | 06 06 18 19 20 65960
1116 | 08 08 08 14 01 29641
1117 | 01 01 13 14 02 47642
1118 | 12 12 12 14 03 44043
1119 | 03 03 03 14 04 11644
1120 | 02 02 02 14 05 8045
1121 | 05 05 17 32 01 63121
1122 | 05 05 17 32 01 63121
1123 | 05 05 17 32 00 63120
1124 | 05 05 17 32 01 63121
1125 | 05 05 17 32 01 63121
1126 | 05 05 17 32 01 63121
1127 | 05 05 17 32 01 63121
1128 | 05 05 17 32 01 63121
1129 | 05 05 17 32 01 63121
1130 | 05 05 17 32 01 63121
1131 | 05 05 17 32 01 63121
1132 | 05 05 17 32 01 63121
1133 | 06 06 18 32 01 66721
1134 | 05 05 17 32 01 63121
1135 | 05 05 17 32 01 63121
1136 | 05 05 17 32 01 63121
1137 | 05 05 17 32 01 63121
1138 | 05 05 17 32 01 63121
1139 | 05 05 17 32 01 63121
1140 | 05 05 17 32 01 63121
1141 | 05 05 17 32 01 63121
1142 | 05 05 17 32 01 63121
1143 | 05 05 17 32 01 63121
1144 | 05 05 17 32 01 63121
1145 | 05 05 17 32 01 63121
1146 | 05 05 17 32 01 63121
1147 | 05 05 17 32 01 63121
1148 | 05 05 17 32 01 63121
1149 | 05 05 17 32 01 63121
1150 | 05 05 17 32 01 63121
1151 | 05 05 17 32 01 63121
1152 | 05 05 17 32 01 63121
1153 | 05 05 17 32 01 63121
1154 | 05 05 17 32 01 63121
1155 | 05 05 17 32 01 63121
1156 | 05 05 17 32 01 63121
1157 | 05 05 17 32 01 63121
1158 | 05 05 17 32 01 63121
1159 | 05 05 17 32 01 63121
1160 | 05 05 17 32 01 63121
1161 | 05 05 17 32 01 63121
1162 | 05 05 17 32 01 63121
1163 | 05 05 17 32 01 63121
1166 SELECT '' AS to_char_6, to_char(d1, E'"HH:MI:SS is" HH:MI:SS "\\"text between quote marks\\""')
1169 -----------+-------------------------------------------------
1172 | HH:MI:SS is 12:00:00 "text between quote marks"
1173 | HH:MI:SS is 05:32:01 "text between quote marks"
1174 | HH:MI:SS is 05:32:01 "text between quote marks"
1175 | HH:MI:SS is 05:32:02 "text between quote marks"
1176 | HH:MI:SS is 05:32:01 "text between quote marks"
1177 | HH:MI:SS is 05:32:01 "text between quote marks"
1178 | HH:MI:SS is 05:32:01 "text between quote marks"
1179 | HH:MI:SS is 12:00:00 "text between quote marks"
1180 | HH:MI:SS is 03:04:05 "text between quote marks"
1181 | HH:MI:SS is 05:32:01 "text between quote marks"
1182 | HH:MI:SS is 05:32:01 "text between quote marks"
1183 | HH:MI:SS is 05:32:01 "text between quote marks"
1184 | HH:MI:SS is 05:32:01 "text between quote marks"
1185 | HH:MI:SS is 05:32:01 "text between quote marks"
1186 | HH:MI:SS is 06:19:20 "text between quote marks"
1187 | HH:MI:SS is 08:14:01 "text between quote marks"
1188 | HH:MI:SS is 01:14:02 "text between quote marks"
1189 | HH:MI:SS is 12:14:03 "text between quote marks"
1190 | HH:MI:SS is 03:14:04 "text between quote marks"
1191 | HH:MI:SS is 02:14:05 "text between quote marks"
1192 | HH:MI:SS is 05:32:01 "text between quote marks"
1193 | HH:MI:SS is 05:32:01 "text between quote marks"
1194 | HH:MI:SS is 05:32:00 "text between quote marks"
1195 | HH:MI:SS is 05:32:01 "text between quote marks"
1196 | HH:MI:SS is 05:32:01 "text between quote marks"
1197 | HH:MI:SS is 05:32:01 "text between quote marks"
1198 | HH:MI:SS is 05:32:01 "text between quote marks"
1199 | HH:MI:SS is 05:32:01 "text between quote marks"
1200 | HH:MI:SS is 05:32:01 "text between quote marks"
1201 | HH:MI:SS is 05:32:01 "text between quote marks"
1202 | HH:MI:SS is 05:32:01 "text between quote marks"
1203 | HH:MI:SS is 05:32:01 "text between quote marks"
1204 | HH:MI:SS is 06:32:01 "text between quote marks"
1205 | HH:MI:SS is 05:32:01 "text between quote marks"
1206 | HH:MI:SS is 05:32:01 "text between quote marks"
1207 | HH:MI:SS is 05:32:01 "text between quote marks"
1208 | HH:MI:SS is 05:32:01 "text between quote marks"
1209 | HH:MI:SS is 05:32:01 "text between quote marks"
1210 | HH:MI:SS is 05:32:01 "text between quote marks"
1211 | HH:MI:SS is 05:32:01 "text between quote marks"
1212 | HH:MI:SS is 05:32:01 "text between quote marks"
1213 | HH:MI:SS is 05:32:01 "text between quote marks"
1214 | HH:MI:SS is 05:32:01 "text between quote marks"
1215 | HH:MI:SS is 05:32:01 "text between quote marks"
1216 | HH:MI:SS is 05:32:01 "text between quote marks"
1217 | HH:MI:SS is 05:32:01 "text between quote marks"
1218 | HH:MI:SS is 05:32:01 "text between quote marks"
1219 | HH:MI:SS is 05:32:01 "text between quote marks"
1220 | HH:MI:SS is 05:32:01 "text between quote marks"
1221 | HH:MI:SS is 05:32:01 "text between quote marks"
1222 | HH:MI:SS is 05:32:01 "text between quote marks"
1223 | HH:MI:SS is 05:32:01 "text between quote marks"
1224 | HH:MI:SS is 05:32:01 "text between quote marks"
1225 | HH:MI:SS is 05:32:01 "text between quote marks"
1226 | HH:MI:SS is 05:32:01 "text between quote marks"
1227 | HH:MI:SS is 05:32:01 "text between quote marks"
1228 | HH:MI:SS is 05:32:01 "text between quote marks"
1229 | HH:MI:SS is 05:32:01 "text between quote marks"
1230 | HH:MI:SS is 05:32:01 "text between quote marks"
1231 | HH:MI:SS is 05:32:01 "text between quote marks"
1232 | HH:MI:SS is 05:32:01 "text between quote marks"
1233 | HH:MI:SS is 05:32:01 "text between quote marks"
1234 | HH:MI:SS is 05:32:01 "text between quote marks"
1237 SELECT '' AS to_char_7, to_char(d1, 'HH24--text--MI--text--SS')
1240 -----------+------------------------
1243 | 00--text--00--text--00
1244 | 17--text--32--text--01
1245 | 17--text--32--text--01
1246 | 17--text--32--text--02
1247 | 17--text--32--text--01
1248 | 17--text--32--text--01
1249 | 17--text--32--text--01
1250 | 00--text--00--text--00
1251 | 03--text--04--text--05
1252 | 17--text--32--text--01
1253 | 17--text--32--text--01
1254 | 17--text--32--text--01
1255 | 17--text--32--text--01
1256 | 17--text--32--text--01
1257 | 18--text--19--text--20
1258 | 08--text--14--text--01
1259 | 13--text--14--text--02
1260 | 12--text--14--text--03
1261 | 03--text--14--text--04
1262 | 02--text--14--text--05
1263 | 17--text--32--text--01
1264 | 17--text--32--text--01
1265 | 17--text--32--text--00
1266 | 17--text--32--text--01
1267 | 17--text--32--text--01
1268 | 17--text--32--text--01
1269 | 17--text--32--text--01
1270 | 17--text--32--text--01
1271 | 17--text--32--text--01
1272 | 17--text--32--text--01
1273 | 17--text--32--text--01
1274 | 17--text--32--text--01
1275 | 18--text--32--text--01
1276 | 17--text--32--text--01
1277 | 17--text--32--text--01
1278 | 17--text--32--text--01
1279 | 17--text--32--text--01
1280 | 17--text--32--text--01
1281 | 17--text--32--text--01
1282 | 17--text--32--text--01
1283 | 17--text--32--text--01
1284 | 17--text--32--text--01
1285 | 17--text--32--text--01
1286 | 17--text--32--text--01
1287 | 17--text--32--text--01
1288 | 17--text--32--text--01
1289 | 17--text--32--text--01
1290 | 17--text--32--text--01
1291 | 17--text--32--text--01
1292 | 17--text--32--text--01
1293 | 17--text--32--text--01
1294 | 17--text--32--text--01
1295 | 17--text--32--text--01
1296 | 17--text--32--text--01
1297 | 17--text--32--text--01
1298 | 17--text--32--text--01
1299 | 17--text--32--text--01
1300 | 17--text--32--text--01
1301 | 17--text--32--text--01
1302 | 17--text--32--text--01
1303 | 17--text--32--text--01
1304 | 17--text--32--text--01
1305 | 17--text--32--text--01
1308 SELECT '' AS to_char_8, to_char(d1, 'YYYYTH YYYYth Jth')
1311 -----------+-------------------------
1314 | 1970TH 1970th 2440588th
1315 | 1997TH 1997th 2450490th
1316 | 1997TH 1997th 2450490th
1317 | 1997TH 1997th 2450490th
1318 | 1997TH 1997th 2450490th
1319 | 1997TH 1997th 2450490th
1320 | 1997TH 1997th 2450490th
1321 | 1997TH 1997th 2450451st
1322 | 1997TH 1997th 2450451st
1323 | 1997TH 1997th 2450490th
1324 | 1997TH 1997th 2450490th
1325 | 1997TH 1997th 2450490th
1326 | 1997TH 1997th 2450490th
1327 | 1997TH 1997th 2450610th
1328 | 2001ST 2001st 2452175th
1329 | 2000TH 2000th 2451619th
1330 | 2000TH 2000th 2451619th
1331 | 2000TH 2000th 2451619th
1332 | 2000TH 2000th 2451619th
1333 | 2000TH 2000th 2451619th
1334 | 1997TH 1997th 2450490th
1335 | 1997TH 1997th 2450490th
1336 | 1997TH 1997th 2450490th
1337 | 1997TH 1997th 2450490th
1338 | 1997TH 1997th 2450490th
1339 | 1997TH 1997th 2450490th
1340 | 1997TH 1997th 2450490th
1341 | 1997TH 1997th 2450490th
1342 | 1997TH 1997th 2450490th
1343 | 1997TH 1997th 2450490th
1344 | 1997TH 1997th 2450490th
1345 | 1997TH 1997th 2450490th
1346 | 1997TH 1997th 2450610th
1347 | 1997TH 1997th 2450490th
1348 | 1997TH 1997th 2450491st
1349 | 1997TH 1997th 2450492nd
1350 | 1997TH 1997th 2450493rd
1351 | 1997TH 1997th 2450494th
1352 | 1997TH 1997th 2450495th
1353 | 1997TH 1997th 2450496th
1354 | 0097TH 0097th 1686042nd
1355 | 0097TH 0097th 1756536th
1356 | 0597TH 0597th 1939157th
1357 | 1097TH 1097th 2121778th
1358 | 1697TH 1697th 2340924th
1359 | 1797TH 1797th 2377448th
1360 | 1897TH 1897th 2413972nd
1361 | 1997TH 1997th 2450496th
1362 | 2097TH 2097th 2487021st
1363 | 1996TH 1996th 2450142nd
1364 | 1996TH 1996th 2450143rd
1365 | 1996TH 1996th 2450144th
1366 | 1996TH 1996th 2450448th
1367 | 1996TH 1996th 2450449th
1368 | 1997TH 1997th 2450450th
1369 | 1997TH 1997th 2450508th
1370 | 1997TH 1997th 2450509th
1371 | 1997TH 1997th 2450813th
1372 | 1997TH 1997th 2450814th
1373 | 1999TH 1999th 2451544th
1374 | 2000TH 2000th 2451545th
1375 | 2000TH 2000th 2451910th
1376 | 2001ST 2001st 2451911th
1380 SELECT '' AS to_char_9, to_char(d1, 'YYYY A.D. YYYY a.d. YYYY bc HH:MI:SS P.M. HH:MI:SS p.m. HH:MI:SS pm')
1383 -----------+---------------------------------------------------------------------
1386 | 1970 A.D. 1970 a.d. 1970 ad 12:00:00 A.M. 12:00:00 a.m. 12:00:00 am
1387 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1388 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1389 | 1997 A.D. 1997 a.d. 1997 ad 05:32:02 P.M. 05:32:02 p.m. 05:32:02 pm
1390 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1391 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1392 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1393 | 1997 A.D. 1997 a.d. 1997 ad 12:00:00 A.M. 12:00:00 a.m. 12:00:00 am
1394 | 1997 A.D. 1997 a.d. 1997 ad 03:04:05 A.M. 03:04:05 a.m. 03:04:05 am
1395 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1396 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1397 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1398 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1399 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1400 | 2001 A.D. 2001 a.d. 2001 ad 06:19:20 P.M. 06:19:20 p.m. 06:19:20 pm
1401 | 2000 A.D. 2000 a.d. 2000 ad 08:14:01 A.M. 08:14:01 a.m. 08:14:01 am
1402 | 2000 A.D. 2000 a.d. 2000 ad 01:14:02 P.M. 01:14:02 p.m. 01:14:02 pm
1403 | 2000 A.D. 2000 a.d. 2000 ad 12:14:03 P.M. 12:14:03 p.m. 12:14:03 pm
1404 | 2000 A.D. 2000 a.d. 2000 ad 03:14:04 A.M. 03:14:04 a.m. 03:14:04 am
1405 | 2000 A.D. 2000 a.d. 2000 ad 02:14:05 A.M. 02:14:05 a.m. 02:14:05 am
1406 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1407 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1408 | 1997 A.D. 1997 a.d. 1997 ad 05:32:00 P.M. 05:32:00 p.m. 05:32:00 pm
1409 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1410 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1411 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1412 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1413 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1414 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1415 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1416 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1417 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1418 | 1997 A.D. 1997 a.d. 1997 ad 06:32:01 P.M. 06:32:01 p.m. 06:32:01 pm
1419 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1420 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1421 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1422 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1423 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1424 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1425 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1426 | 0097 B.C. 0097 b.c. 0097 bc 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1427 | 0097 A.D. 0097 a.d. 0097 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1428 | 0597 A.D. 0597 a.d. 0597 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1429 | 1097 A.D. 1097 a.d. 1097 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1430 | 1697 A.D. 1697 a.d. 1697 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1431 | 1797 A.D. 1797 a.d. 1797 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1432 | 1897 A.D. 1897 a.d. 1897 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1433 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1434 | 2097 A.D. 2097 a.d. 2097 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1435 | 1996 A.D. 1996 a.d. 1996 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1436 | 1996 A.D. 1996 a.d. 1996 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1437 | 1996 A.D. 1996 a.d. 1996 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1438 | 1996 A.D. 1996 a.d. 1996 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1439 | 1996 A.D. 1996 a.d. 1996 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1440 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1441 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1442 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1443 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1444 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1445 | 1999 A.D. 1999 a.d. 1999 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1446 | 2000 A.D. 2000 a.d. 2000 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1447 | 2000 A.D. 2000 a.d. 2000 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1448 | 2001 A.D. 2001 a.d. 2001 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1451 SELECT '' AS to_char_10, to_char(d1, 'IYYY IYY IY I IW IDDD ID')
1453 to_char_10 | to_char
1454 ------------+------------------------
1457 | 1970 970 70 0 01 004 4
1458 | 1997 997 97 7 07 043 1
1459 | 1997 997 97 7 07 043 1
1460 | 1997 997 97 7 07 043 1
1461 | 1997 997 97 7 07 043 1
1462 | 1997 997 97 7 07 043 1
1463 | 1997 997 97 7 07 043 1
1464 | 1997 997 97 7 01 004 4
1465 | 1997 997 97 7 01 004 4
1466 | 1997 997 97 7 07 043 1
1467 | 1997 997 97 7 07 043 1
1468 | 1997 997 97 7 07 043 1
1469 | 1997 997 97 7 07 043 1
1470 | 1997 997 97 7 24 163 2
1471 | 2001 001 01 1 38 265 6
1472 | 2000 000 00 0 11 073 3
1473 | 2000 000 00 0 11 073 3
1474 | 2000 000 00 0 11 073 3
1475 | 2000 000 00 0 11 073 3
1476 | 2000 000 00 0 11 073 3
1477 | 1997 997 97 7 07 043 1
1478 | 1997 997 97 7 07 043 1
1479 | 1997 997 97 7 07 043 1
1480 | 1997 997 97 7 07 043 1
1481 | 1997 997 97 7 07 043 1
1482 | 1997 997 97 7 07 043 1
1483 | 1997 997 97 7 07 043 1
1484 | 1997 997 97 7 07 043 1
1485 | 1997 997 97 7 07 043 1
1486 | 1997 997 97 7 07 043 1
1487 | 1997 997 97 7 07 043 1
1488 | 1997 997 97 7 07 043 1
1489 | 1997 997 97 7 24 163 2
1490 | 1997 997 97 7 07 043 1
1491 | 1997 997 97 7 07 044 2
1492 | 1997 997 97 7 07 045 3
1493 | 1997 997 97 7 07 046 4
1494 | 1997 997 97 7 07 047 5
1495 | 1997 997 97 7 07 048 6
1496 | 1997 997 97 7 07 049 7
1497 | 0097 097 97 7 07 044 2
1498 | 0097 097 97 7 07 048 6
1499 | 0597 597 97 7 07 046 4
1500 | 1097 097 97 7 07 044 2
1501 | 1697 697 97 7 07 048 6
1502 | 1797 797 97 7 07 046 4
1503 | 1897 897 97 7 07 044 2
1504 | 1997 997 97 7 07 049 7
1505 | 2097 097 97 7 07 048 6
1506 | 1996 996 96 6 09 059 3
1507 | 1996 996 96 6 09 060 4
1508 | 1996 996 96 6 09 061 5
1509 | 1997 997 97 7 01 001 1
1510 | 1997 997 97 7 01 002 2
1511 | 1997 997 97 7 01 003 3
1512 | 1997 997 97 7 09 061 5
1513 | 1997 997 97 7 09 062 6
1514 | 1998 998 98 8 01 002 2
1515 | 1998 998 98 8 01 003 3
1516 | 1999 999 99 9 52 362 5
1517 | 1999 999 99 9 52 363 6
1518 | 2000 000 00 0 52 364 7
1519 | 2001 001 01 1 01 001 1
1522 SELECT '' AS to_char_11, to_char(d1, 'FMIYYY FMIYY FMIY FMI FMIW FMIDDD FMID')
1524 to_char_11 | to_char
1525 ------------+------------------------
1528 | 1970 970 70 0 1 4 4
1529 | 1997 997 97 7 7 43 1
1530 | 1997 997 97 7 7 43 1
1531 | 1997 997 97 7 7 43 1
1532 | 1997 997 97 7 7 43 1
1533 | 1997 997 97 7 7 43 1
1534 | 1997 997 97 7 7 43 1
1535 | 1997 997 97 7 1 4 4
1536 | 1997 997 97 7 1 4 4
1537 | 1997 997 97 7 7 43 1
1538 | 1997 997 97 7 7 43 1
1539 | 1997 997 97 7 7 43 1
1540 | 1997 997 97 7 7 43 1
1541 | 1997 997 97 7 24 163 2
1542 | 2001 001 01 1 38 265 6
1543 | 2000 000 00 0 11 73 3
1544 | 2000 000 00 0 11 73 3
1545 | 2000 000 00 0 11 73 3
1546 | 2000 000 00 0 11 73 3
1547 | 2000 000 00 0 11 73 3
1548 | 1997 997 97 7 7 43 1
1549 | 1997 997 97 7 7 43 1
1550 | 1997 997 97 7 7 43 1
1551 | 1997 997 97 7 7 43 1
1552 | 1997 997 97 7 7 43 1
1553 | 1997 997 97 7 7 43 1
1554 | 1997 997 97 7 7 43 1
1555 | 1997 997 97 7 7 43 1
1556 | 1997 997 97 7 7 43 1
1557 | 1997 997 97 7 7 43 1
1558 | 1997 997 97 7 7 43 1
1559 | 1997 997 97 7 7 43 1
1560 | 1997 997 97 7 24 163 2
1561 | 1997 997 97 7 7 43 1
1562 | 1997 997 97 7 7 44 2
1563 | 1997 997 97 7 7 45 3
1564 | 1997 997 97 7 7 46 4
1565 | 1997 997 97 7 7 47 5
1566 | 1997 997 97 7 7 48 6
1567 | 1997 997 97 7 7 49 7
1568 | 97 097 97 7 7 44 2
1569 | 97 097 97 7 7 48 6
1570 | 597 597 97 7 7 46 4
1571 | 1097 097 97 7 7 44 2
1572 | 1697 697 97 7 7 48 6
1573 | 1797 797 97 7 7 46 4
1574 | 1897 897 97 7 7 44 2
1575 | 1997 997 97 7 7 49 7
1576 | 2097 097 97 7 7 48 6
1577 | 1996 996 96 6 9 59 3
1578 | 1996 996 96 6 9 60 4
1579 | 1996 996 96 6 9 61 5
1580 | 1997 997 97 7 1 1 1
1581 | 1997 997 97 7 1 2 2
1582 | 1997 997 97 7 1 3 3
1583 | 1997 997 97 7 9 61 5
1584 | 1997 997 97 7 9 62 6
1585 | 1998 998 98 8 1 2 2
1586 | 1998 998 98 8 1 3 3
1587 | 1999 999 99 9 52 362 5
1588 | 1999 999 99 9 52 363 6
1589 | 2000 000 00 0 52 364 7
1590 | 2001 001 01 1 1 1 1