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 ('undefined');
88 ERROR: date/time value "undefined" is no longer supported
89 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('undefined');
91 INSERT INTO TIMESTAMP_TBL VALUES ('current');
92 ERROR: date/time value "current" is no longer supported
93 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('current');
95 -- Postgres v6.0 standard output format
96 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01 1997 PST');
97 -- Variations on Postgres v6.1 standard output format
98 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.000001 1997 PST');
99 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.999999 1997 PST');
100 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.4 1997 PST');
101 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.5 1997 PST');
102 INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.6 1997 PST');
104 INSERT INTO TIMESTAMP_TBL VALUES ('1997-01-02');
105 INSERT INTO TIMESTAMP_TBL VALUES ('1997-01-02 03:04:05');
106 INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01-08');
107 INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01-0800');
108 INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01 -08:00');
109 INSERT INTO TIMESTAMP_TBL VALUES ('19970210 173201 -0800');
110 INSERT INTO TIMESTAMP_TBL VALUES ('1997-06-10 17:32:01 -07:00');
111 INSERT INTO TIMESTAMP_TBL VALUES ('2001-09-22T18:19:20');
112 -- POSIX format (note that the timezone abbrev is just decoration here)
113 INSERT INTO TIMESTAMP_TBL VALUES ('2000-03-15 08:14:01 GMT+8');
114 INSERT INTO TIMESTAMP_TBL VALUES ('2000-03-15 13:14:02 GMT-1');
115 INSERT INTO TIMESTAMP_TBL VALUES ('2000-03-15 12:14:03 GMT-2');
116 INSERT INTO TIMESTAMP_TBL VALUES ('2000-03-15 03:14:04 PST+8');
117 INSERT INTO TIMESTAMP_TBL VALUES ('2000-03-15 02:14:05 MST+7:00');
118 -- Variations for acceptable input formats
119 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 17:32:01 1997 -0800');
120 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 17:32:01 1997');
121 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 5:32PM 1997');
122 INSERT INTO TIMESTAMP_TBL VALUES ('1997/02/10 17:32:01-0800');
123 INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01 PST');
124 INSERT INTO TIMESTAMP_TBL VALUES ('Feb-10-1997 17:32:01 PST');
125 INSERT INTO TIMESTAMP_TBL VALUES ('02-10-1997 17:32:01 PST');
126 INSERT INTO TIMESTAMP_TBL VALUES ('19970210 173201 PST');
127 set datestyle to ymd;
128 INSERT INTO TIMESTAMP_TBL VALUES ('97FEB10 5:32:01PM UTC');
129 INSERT INTO TIMESTAMP_TBL VALUES ('97/02/10 17:32:01 UTC');
131 INSERT INTO TIMESTAMP_TBL VALUES ('1997.041 17:32:01 UTC');
132 INSERT INTO TIMESTAMP_TBL VALUES ('19970210 173201 America/New_York');
133 -- this fails (even though TZ is a no-op, we still look it up)
134 INSERT INTO TIMESTAMP_TBL VALUES ('19970710 173201 America/Does_not_exist');
135 ERROR: time zone "america/does_not_exist" not recognized
136 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('19970710 173201 America/D...
138 -- Check date conversion and date arithmetic
139 INSERT INTO TIMESTAMP_TBL VALUES ('1997-06-10 18:32:01 PDT');
140 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 17:32:01 1997');
141 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 11 17:32:01 1997');
142 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 12 17:32:01 1997');
143 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 13 17:32:01 1997');
144 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 14 17:32:01 1997');
145 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 15 17:32:01 1997');
146 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1997');
147 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 0097 BC');
148 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 0097');
149 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 0597');
150 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1097');
151 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1697');
152 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1797');
153 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1897');
154 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1997');
155 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 2097');
156 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 28 17:32:01 1996');
157 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 29 17:32:01 1996');
158 INSERT INTO TIMESTAMP_TBL VALUES ('Mar 01 17:32:01 1996');
159 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 30 17:32:01 1996');
160 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 1996');
161 INSERT INTO TIMESTAMP_TBL VALUES ('Jan 01 17:32:01 1997');
162 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 28 17:32:01 1997');
163 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 29 17:32:01 1997');
164 ERROR: date/time field value out of range: "Feb 29 17:32:01 1997"
165 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('Feb 29 17:32:01 1997');
167 INSERT INTO TIMESTAMP_TBL VALUES ('Mar 01 17:32:01 1997');
168 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 30 17:32:01 1997');
169 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 1997');
170 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 1999');
171 INSERT INTO TIMESTAMP_TBL VALUES ('Jan 01 17:32:01 2000');
172 INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 2000');
173 INSERT INTO TIMESTAMP_TBL VALUES ('Jan 01 17:32:01 2001');
174 -- Currently unsupported syntax and ranges
175 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 -0097');
176 ERROR: time zone displacement out of range: "Feb 16 17:32:01 -0097"
177 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 -0097');
179 INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 5097 BC');
180 ERROR: timestamp out of range: "Feb 16 17:32:01 5097 BC"
181 LINE 1: INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 5097 BC')...
183 SELECT '' AS "64", d1 FROM TIMESTAMP_TBL;
185 ----+-----------------------------
188 | Thu Jan 01 00:00:00 1970
189 | Mon Feb 10 17:32:01 1997
190 | Mon Feb 10 17:32:01 1997
191 | Mon Feb 10 17:32:02 1997
192 | Mon Feb 10 17:32:01.4 1997
193 | Mon Feb 10 17:32:01.5 1997
194 | Mon Feb 10 17:32:01.6 1997
195 | Thu Jan 02 00:00:00 1997
196 | Thu Jan 02 03:04:05 1997
197 | Mon Feb 10 17:32:01 1997
198 | Mon Feb 10 17:32:01 1997
199 | Mon Feb 10 17:32:01 1997
200 | Mon Feb 10 17:32:01 1997
201 | Tue Jun 10 17:32:01 1997
202 | Sat Sep 22 18:19:20 2001
203 | Wed Mar 15 08:14:01 2000
204 | Wed Mar 15 13:14:02 2000
205 | Wed Mar 15 12:14:03 2000
206 | Wed Mar 15 03:14:04 2000
207 | Wed Mar 15 02:14:05 2000
208 | Mon Feb 10 17:32:01 1997
209 | Mon Feb 10 17:32:01 1997
210 | Mon Feb 10 17:32:00 1997
211 | Mon Feb 10 17:32:01 1997
212 | Mon Feb 10 17:32:01 1997
213 | Mon Feb 10 17:32:01 1997
214 | Mon Feb 10 17:32:01 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 | Tue Jun 10 18:32:01 1997
221 | Mon Feb 10 17:32:01 1997
222 | Tue Feb 11 17:32:01 1997
223 | Wed Feb 12 17:32:01 1997
224 | Thu Feb 13 17:32:01 1997
225 | Fri Feb 14 17:32:01 1997
226 | Sat Feb 15 17:32:01 1997
227 | Sun Feb 16 17:32:01 1997
228 | Tue Feb 16 17:32:01 0097 BC
229 | Sat Feb 16 17:32:01 0097
230 | Thu Feb 16 17:32:01 0597
231 | Tue Feb 16 17:32:01 1097
232 | Sat Feb 16 17:32:01 1697
233 | Thu Feb 16 17:32:01 1797
234 | Tue Feb 16 17:32:01 1897
235 | Sun Feb 16 17:32:01 1997
236 | Sat Feb 16 17:32:01 2097
237 | Wed Feb 28 17:32:01 1996
238 | Thu Feb 29 17:32:01 1996
239 | Fri Mar 01 17:32:01 1996
240 | Mon Dec 30 17:32:01 1996
241 | Tue Dec 31 17:32:01 1996
242 | Wed Jan 01 17:32:01 1997
243 | Fri Feb 28 17:32:01 1997
244 | Sat Mar 01 17:32:01 1997
245 | Tue Dec 30 17:32:01 1997
246 | Wed Dec 31 17:32:01 1997
247 | Fri Dec 31 17:32:01 1999
248 | Sat Jan 01 17:32:01 2000
249 | Sun Dec 31 17:32:01 2000
250 | Mon Jan 01 17:32:01 2001
253 -- Demonstrate functions and operators
254 SELECT '' AS "48", d1 FROM TIMESTAMP_TBL
255 WHERE d1 > timestamp without time zone '1997-01-02';
257 ----+----------------------------
259 | Mon Feb 10 17:32:01 1997
260 | Mon Feb 10 17:32:01 1997
261 | Mon Feb 10 17:32:02 1997
262 | Mon Feb 10 17:32:01.4 1997
263 | Mon Feb 10 17:32:01.5 1997
264 | Mon Feb 10 17:32:01.6 1997
265 | Thu Jan 02 03:04:05 1997
266 | Mon Feb 10 17:32:01 1997
267 | Mon Feb 10 17:32:01 1997
268 | Mon Feb 10 17:32:01 1997
269 | Mon Feb 10 17:32:01 1997
270 | Tue Jun 10 17:32:01 1997
271 | Sat Sep 22 18:19:20 2001
272 | Wed Mar 15 08:14:01 2000
273 | Wed Mar 15 13:14:02 2000
274 | Wed Mar 15 12:14:03 2000
275 | Wed Mar 15 03:14:04 2000
276 | Wed Mar 15 02:14:05 2000
277 | Mon Feb 10 17:32:01 1997
278 | Mon Feb 10 17:32:01 1997
279 | Mon Feb 10 17:32:00 1997
280 | Mon Feb 10 17:32:01 1997
281 | Mon Feb 10 17:32:01 1997
282 | Mon Feb 10 17:32:01 1997
283 | Mon Feb 10 17:32:01 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 | Tue Jun 10 18:32:01 1997
290 | Mon Feb 10 17:32:01 1997
291 | Tue Feb 11 17:32:01 1997
292 | Wed Feb 12 17:32:01 1997
293 | Thu Feb 13 17:32:01 1997
294 | Fri Feb 14 17:32:01 1997
295 | Sat Feb 15 17:32:01 1997
296 | Sun Feb 16 17:32:01 1997
297 | Sun Feb 16 17:32:01 1997
298 | Sat Feb 16 17:32:01 2097
299 | Fri Feb 28 17:32:01 1997
300 | Sat Mar 01 17:32:01 1997
301 | Tue Dec 30 17:32:01 1997
302 | Wed Dec 31 17:32:01 1997
303 | Fri Dec 31 17:32:01 1999
304 | Sat Jan 01 17:32:01 2000
305 | Sun Dec 31 17:32:01 2000
306 | Mon Jan 01 17:32:01 2001
309 SELECT '' AS "15", d1 FROM TIMESTAMP_TBL
310 WHERE d1 < timestamp without time zone '1997-01-02';
312 ----+-----------------------------
314 | Thu Jan 01 00:00:00 1970
315 | Tue Feb 16 17:32:01 0097 BC
316 | Sat Feb 16 17:32:01 0097
317 | Thu Feb 16 17:32:01 0597
318 | Tue Feb 16 17:32:01 1097
319 | Sat Feb 16 17:32:01 1697
320 | Thu Feb 16 17:32:01 1797
321 | Tue Feb 16 17:32:01 1897
322 | Wed Feb 28 17:32:01 1996
323 | Thu Feb 29 17:32:01 1996
324 | Fri Mar 01 17:32:01 1996
325 | Mon Dec 30 17:32:01 1996
326 | Tue Dec 31 17:32:01 1996
327 | Wed Jan 01 17:32:01 1997
330 SELECT '' AS one, d1 FROM TIMESTAMP_TBL
331 WHERE d1 = timestamp without time zone '1997-01-02';
333 -----+--------------------------
334 | Thu Jan 02 00:00:00 1997
337 SELECT '' AS "63", d1 FROM TIMESTAMP_TBL
338 WHERE d1 != timestamp without time zone '1997-01-02';
340 ----+-----------------------------
343 | Thu Jan 01 00:00:00 1970
344 | Mon Feb 10 17:32:01 1997
345 | Mon Feb 10 17:32:01 1997
346 | Mon Feb 10 17:32:02 1997
347 | Mon Feb 10 17:32:01.4 1997
348 | Mon Feb 10 17:32:01.5 1997
349 | Mon Feb 10 17:32:01.6 1997
350 | Thu Jan 02 03:04:05 1997
351 | Mon Feb 10 17:32:01 1997
352 | Mon Feb 10 17:32:01 1997
353 | Mon Feb 10 17:32:01 1997
354 | Mon Feb 10 17:32:01 1997
355 | Tue Jun 10 17:32:01 1997
356 | Sat Sep 22 18:19:20 2001
357 | Wed Mar 15 08:14:01 2000
358 | Wed Mar 15 13:14:02 2000
359 | Wed Mar 15 12:14:03 2000
360 | Wed Mar 15 03:14:04 2000
361 | Wed Mar 15 02:14:05 2000
362 | Mon Feb 10 17:32:01 1997
363 | Mon Feb 10 17:32:01 1997
364 | Mon Feb 10 17:32:00 1997
365 | Mon Feb 10 17:32:01 1997
366 | Mon Feb 10 17:32:01 1997
367 | Mon Feb 10 17:32:01 1997
368 | Mon Feb 10 17:32:01 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 | Tue Jun 10 18:32:01 1997
375 | Mon Feb 10 17:32:01 1997
376 | Tue Feb 11 17:32:01 1997
377 | Wed Feb 12 17:32:01 1997
378 | Thu Feb 13 17:32:01 1997
379 | Fri Feb 14 17:32:01 1997
380 | Sat Feb 15 17:32:01 1997
381 | Sun Feb 16 17:32:01 1997
382 | Tue Feb 16 17:32:01 0097 BC
383 | Sat Feb 16 17:32:01 0097
384 | Thu Feb 16 17:32:01 0597
385 | Tue Feb 16 17:32:01 1097
386 | Sat Feb 16 17:32:01 1697
387 | Thu Feb 16 17:32:01 1797
388 | Tue Feb 16 17:32:01 1897
389 | Sun Feb 16 17:32:01 1997
390 | Sat Feb 16 17:32:01 2097
391 | Wed Feb 28 17:32:01 1996
392 | Thu Feb 29 17:32:01 1996
393 | Fri Mar 01 17:32:01 1996
394 | Mon Dec 30 17:32:01 1996
395 | Tue Dec 31 17:32:01 1996
396 | Wed Jan 01 17:32:01 1997
397 | Fri Feb 28 17:32:01 1997
398 | Sat Mar 01 17:32:01 1997
399 | Tue Dec 30 17:32:01 1997
400 | Wed Dec 31 17:32:01 1997
401 | Fri Dec 31 17:32:01 1999
402 | Sat Jan 01 17:32:01 2000
403 | Sun Dec 31 17:32:01 2000
404 | Mon Jan 01 17:32:01 2001
407 SELECT '' AS "16", d1 FROM TIMESTAMP_TBL
408 WHERE d1 <= timestamp without time zone '1997-01-02';
410 ----+-----------------------------
412 | Thu Jan 01 00:00:00 1970
413 | Thu Jan 02 00:00:00 1997
414 | Tue Feb 16 17:32:01 0097 BC
415 | Sat Feb 16 17:32:01 0097
416 | Thu Feb 16 17:32:01 0597
417 | Tue Feb 16 17:32:01 1097
418 | Sat Feb 16 17:32:01 1697
419 | Thu Feb 16 17:32:01 1797
420 | Tue Feb 16 17:32:01 1897
421 | Wed Feb 28 17:32:01 1996
422 | Thu Feb 29 17:32:01 1996
423 | Fri Mar 01 17:32:01 1996
424 | Mon Dec 30 17:32:01 1996
425 | Tue Dec 31 17:32:01 1996
426 | Wed Jan 01 17:32:01 1997
429 SELECT '' AS "49", d1 FROM TIMESTAMP_TBL
430 WHERE d1 >= timestamp without time zone '1997-01-02';
432 ----+----------------------------
434 | Mon Feb 10 17:32:01 1997
435 | Mon Feb 10 17:32:01 1997
436 | Mon Feb 10 17:32:02 1997
437 | Mon Feb 10 17:32:01.4 1997
438 | Mon Feb 10 17:32:01.5 1997
439 | Mon Feb 10 17:32:01.6 1997
440 | Thu Jan 02 00:00:00 1997
441 | Thu Jan 02 03:04:05 1997
442 | Mon Feb 10 17:32:01 1997
443 | Mon Feb 10 17:32:01 1997
444 | Mon Feb 10 17:32:01 1997
445 | Mon Feb 10 17:32:01 1997
446 | Tue Jun 10 17:32:01 1997
447 | Sat Sep 22 18:19:20 2001
448 | Wed Mar 15 08:14:01 2000
449 | Wed Mar 15 13:14:02 2000
450 | Wed Mar 15 12:14:03 2000
451 | Wed Mar 15 03:14:04 2000
452 | Wed Mar 15 02:14:05 2000
453 | Mon Feb 10 17:32:01 1997
454 | Mon Feb 10 17:32:01 1997
455 | Mon Feb 10 17:32:00 1997
456 | Mon Feb 10 17:32:01 1997
457 | Mon Feb 10 17:32:01 1997
458 | Mon Feb 10 17:32:01 1997
459 | Mon Feb 10 17:32:01 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 | Tue Jun 10 18:32:01 1997
466 | Mon Feb 10 17:32:01 1997
467 | Tue Feb 11 17:32:01 1997
468 | Wed Feb 12 17:32:01 1997
469 | Thu Feb 13 17:32:01 1997
470 | Fri Feb 14 17:32:01 1997
471 | Sat Feb 15 17:32:01 1997
472 | Sun Feb 16 17:32:01 1997
473 | Sun Feb 16 17:32:01 1997
474 | Sat Feb 16 17:32:01 2097
475 | Fri Feb 28 17:32:01 1997
476 | Sat Mar 01 17:32:01 1997
477 | Tue Dec 30 17:32:01 1997
478 | Wed Dec 31 17:32:01 1997
479 | Fri Dec 31 17:32:01 1999
480 | Sat Jan 01 17:32:01 2000
481 | Sun Dec 31 17:32:01 2000
482 | Mon Jan 01 17:32:01 2001
485 SELECT '' AS "54", d1 - timestamp without time zone '1997-01-02' AS diff
486 FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
488 ----+----------------------------------------
490 | @ 39 days 17 hours 32 mins 1 sec
491 | @ 39 days 17 hours 32 mins 1 sec
492 | @ 39 days 17 hours 32 mins 2 secs
493 | @ 39 days 17 hours 32 mins 1.4 secs
494 | @ 39 days 17 hours 32 mins 1.5 secs
495 | @ 39 days 17 hours 32 mins 1.6 secs
497 | @ 3 hours 4 mins 5 secs
498 | @ 39 days 17 hours 32 mins 1 sec
499 | @ 39 days 17 hours 32 mins 1 sec
500 | @ 39 days 17 hours 32 mins 1 sec
501 | @ 39 days 17 hours 32 mins 1 sec
502 | @ 159 days 17 hours 32 mins 1 sec
503 | @ 1724 days 18 hours 19 mins 20 secs
504 | @ 1168 days 8 hours 14 mins 1 sec
505 | @ 1168 days 13 hours 14 mins 2 secs
506 | @ 1168 days 12 hours 14 mins 3 secs
507 | @ 1168 days 3 hours 14 mins 4 secs
508 | @ 1168 days 2 hours 14 mins 5 secs
509 | @ 39 days 17 hours 32 mins 1 sec
510 | @ 39 days 17 hours 32 mins 1 sec
511 | @ 39 days 17 hours 32 mins
512 | @ 39 days 17 hours 32 mins 1 sec
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 1 sec
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 | @ 159 days 18 hours 32 mins 1 sec
522 | @ 39 days 17 hours 32 mins 1 sec
523 | @ 40 days 17 hours 32 mins 1 sec
524 | @ 41 days 17 hours 32 mins 1 sec
525 | @ 42 days 17 hours 32 mins 1 sec
526 | @ 43 days 17 hours 32 mins 1 sec
527 | @ 44 days 17 hours 32 mins 1 sec
528 | @ 45 days 17 hours 32 mins 1 sec
529 | @ 45 days 17 hours 32 mins 1 sec
530 | @ 308 days 6 hours 27 mins 59 secs ago
531 | @ 307 days 6 hours 27 mins 59 secs ago
532 | @ 306 days 6 hours 27 mins 59 secs ago
533 | @ 2 days 6 hours 27 mins 59 secs ago
534 | @ 1 day 6 hours 27 mins 59 secs ago
535 | @ 6 hours 27 mins 59 secs ago
536 | @ 57 days 17 hours 32 mins 1 sec
537 | @ 58 days 17 hours 32 mins 1 sec
538 | @ 362 days 17 hours 32 mins 1 sec
539 | @ 363 days 17 hours 32 mins 1 sec
540 | @ 1093 days 17 hours 32 mins 1 sec
541 | @ 1094 days 17 hours 32 mins 1 sec
542 | @ 1459 days 17 hours 32 mins 1 sec
543 | @ 1460 days 17 hours 32 mins 1 sec
546 SELECT '' AS date_trunc_week, date_trunc( 'week', timestamp '2004-02-29 15:44:17.71393' ) AS week_trunc;
547 date_trunc_week | week_trunc
548 -----------------+--------------------------
549 | Mon Feb 23 00:00:00 2004
552 -- Test casting within a BETWEEN qualifier
553 SELECT '' AS "54", d1 - timestamp without time zone '1997-01-02' AS diff
555 WHERE d1 BETWEEN timestamp without time zone '1902-01-01'
556 AND timestamp without time zone '2038-01-01';
558 ----+----------------------------------------
560 | @ 39 days 17 hours 32 mins 1 sec
561 | @ 39 days 17 hours 32 mins 1 sec
562 | @ 39 days 17 hours 32 mins 2 secs
563 | @ 39 days 17 hours 32 mins 1.4 secs
564 | @ 39 days 17 hours 32 mins 1.5 secs
565 | @ 39 days 17 hours 32 mins 1.6 secs
567 | @ 3 hours 4 mins 5 secs
568 | @ 39 days 17 hours 32 mins 1 sec
569 | @ 39 days 17 hours 32 mins 1 sec
570 | @ 39 days 17 hours 32 mins 1 sec
571 | @ 39 days 17 hours 32 mins 1 sec
572 | @ 159 days 17 hours 32 mins 1 sec
573 | @ 1724 days 18 hours 19 mins 20 secs
574 | @ 1168 days 8 hours 14 mins 1 sec
575 | @ 1168 days 13 hours 14 mins 2 secs
576 | @ 1168 days 12 hours 14 mins 3 secs
577 | @ 1168 days 3 hours 14 mins 4 secs
578 | @ 1168 days 2 hours 14 mins 5 secs
579 | @ 39 days 17 hours 32 mins 1 sec
580 | @ 39 days 17 hours 32 mins 1 sec
581 | @ 39 days 17 hours 32 mins
582 | @ 39 days 17 hours 32 mins 1 sec
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 1 sec
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 | @ 159 days 18 hours 32 mins 1 sec
592 | @ 39 days 17 hours 32 mins 1 sec
593 | @ 40 days 17 hours 32 mins 1 sec
594 | @ 41 days 17 hours 32 mins 1 sec
595 | @ 42 days 17 hours 32 mins 1 sec
596 | @ 43 days 17 hours 32 mins 1 sec
597 | @ 44 days 17 hours 32 mins 1 sec
598 | @ 45 days 17 hours 32 mins 1 sec
599 | @ 45 days 17 hours 32 mins 1 sec
600 | @ 308 days 6 hours 27 mins 59 secs ago
601 | @ 307 days 6 hours 27 mins 59 secs ago
602 | @ 306 days 6 hours 27 mins 59 secs ago
603 | @ 2 days 6 hours 27 mins 59 secs ago
604 | @ 1 day 6 hours 27 mins 59 secs ago
605 | @ 6 hours 27 mins 59 secs ago
606 | @ 57 days 17 hours 32 mins 1 sec
607 | @ 58 days 17 hours 32 mins 1 sec
608 | @ 362 days 17 hours 32 mins 1 sec
609 | @ 363 days 17 hours 32 mins 1 sec
610 | @ 1093 days 17 hours 32 mins 1 sec
611 | @ 1094 days 17 hours 32 mins 1 sec
612 | @ 1459 days 17 hours 32 mins 1 sec
613 | @ 1460 days 17 hours 32 mins 1 sec
616 SELECT '' AS "54", d1 as "timestamp",
617 date_part( 'year', d1) AS year, date_part( 'month', d1) AS month,
618 date_part( 'day', d1) AS day, date_part( 'hour', d1) AS hour,
619 date_part( 'minute', d1) AS minute, date_part( 'second', d1) AS second
620 FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
621 54 | timestamp | year | month | day | hour | minute | second
622 ----+----------------------------+------+-------+-----+------+--------+--------
623 | Thu Jan 01 00:00:00 1970 | 1970 | 1 | 1 | 0 | 0 | 0
624 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
625 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
626 | Mon Feb 10 17:32:02 1997 | 1997 | 2 | 10 | 17 | 32 | 2
627 | Mon Feb 10 17:32:01.4 1997 | 1997 | 2 | 10 | 17 | 32 | 1.4
628 | Mon Feb 10 17:32:01.5 1997 | 1997 | 2 | 10 | 17 | 32 | 1.5
629 | Mon Feb 10 17:32:01.6 1997 | 1997 | 2 | 10 | 17 | 32 | 1.6
630 | Thu Jan 02 00:00:00 1997 | 1997 | 1 | 2 | 0 | 0 | 0
631 | Thu Jan 02 03:04:05 1997 | 1997 | 1 | 2 | 3 | 4 | 5
632 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
633 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
634 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
635 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
636 | Tue Jun 10 17:32:01 1997 | 1997 | 6 | 10 | 17 | 32 | 1
637 | Sat Sep 22 18:19:20 2001 | 2001 | 9 | 22 | 18 | 19 | 20
638 | Wed Mar 15 08:14:01 2000 | 2000 | 3 | 15 | 8 | 14 | 1
639 | Wed Mar 15 13:14:02 2000 | 2000 | 3 | 15 | 13 | 14 | 2
640 | Wed Mar 15 12:14:03 2000 | 2000 | 3 | 15 | 12 | 14 | 3
641 | Wed Mar 15 03:14:04 2000 | 2000 | 3 | 15 | 3 | 14 | 4
642 | Wed Mar 15 02:14:05 2000 | 2000 | 3 | 15 | 2 | 14 | 5
643 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
644 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
645 | Mon Feb 10 17:32:00 1997 | 1997 | 2 | 10 | 17 | 32 | 0
646 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
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:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
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 | Tue Jun 10 18:32:01 1997 | 1997 | 6 | 10 | 18 | 32 | 1
656 | Mon Feb 10 17:32:01 1997 | 1997 | 2 | 10 | 17 | 32 | 1
657 | Tue Feb 11 17:32:01 1997 | 1997 | 2 | 11 | 17 | 32 | 1
658 | Wed Feb 12 17:32:01 1997 | 1997 | 2 | 12 | 17 | 32 | 1
659 | Thu Feb 13 17:32:01 1997 | 1997 | 2 | 13 | 17 | 32 | 1
660 | Fri Feb 14 17:32:01 1997 | 1997 | 2 | 14 | 17 | 32 | 1
661 | Sat Feb 15 17:32:01 1997 | 1997 | 2 | 15 | 17 | 32 | 1
662 | Sun Feb 16 17:32:01 1997 | 1997 | 2 | 16 | 17 | 32 | 1
663 | Sun Feb 16 17:32:01 1997 | 1997 | 2 | 16 | 17 | 32 | 1
664 | Wed Feb 28 17:32:01 1996 | 1996 | 2 | 28 | 17 | 32 | 1
665 | Thu Feb 29 17:32:01 1996 | 1996 | 2 | 29 | 17 | 32 | 1
666 | Fri Mar 01 17:32:01 1996 | 1996 | 3 | 1 | 17 | 32 | 1
667 | Mon Dec 30 17:32:01 1996 | 1996 | 12 | 30 | 17 | 32 | 1
668 | Tue Dec 31 17:32:01 1996 | 1996 | 12 | 31 | 17 | 32 | 1
669 | Wed Jan 01 17:32:01 1997 | 1997 | 1 | 1 | 17 | 32 | 1
670 | Fri Feb 28 17:32:01 1997 | 1997 | 2 | 28 | 17 | 32 | 1
671 | Sat Mar 01 17:32:01 1997 | 1997 | 3 | 1 | 17 | 32 | 1
672 | Tue Dec 30 17:32:01 1997 | 1997 | 12 | 30 | 17 | 32 | 1
673 | Wed Dec 31 17:32:01 1997 | 1997 | 12 | 31 | 17 | 32 | 1
674 | Fri Dec 31 17:32:01 1999 | 1999 | 12 | 31 | 17 | 32 | 1
675 | Sat Jan 01 17:32:01 2000 | 2000 | 1 | 1 | 17 | 32 | 1
676 | Sun Dec 31 17:32:01 2000 | 2000 | 12 | 31 | 17 | 32 | 1
677 | Mon Jan 01 17:32:01 2001 | 2001 | 1 | 1 | 17 | 32 | 1
680 SELECT '' AS "54", d1 as "timestamp",
681 date_part( 'quarter', d1) AS quarter, date_part( 'msec', d1) AS msec,
682 date_part( 'usec', d1) AS usec
683 FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
684 54 | timestamp | quarter | msec | usec
685 ----+----------------------------+---------+-------+----------
686 | Thu Jan 01 00:00:00 1970 | 1 | 0 | 0
687 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
688 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
689 | Mon Feb 10 17:32:02 1997 | 1 | 2000 | 2000000
690 | Mon Feb 10 17:32:01.4 1997 | 1 | 1400 | 1400000
691 | Mon Feb 10 17:32:01.5 1997 | 1 | 1500 | 1500000
692 | Mon Feb 10 17:32:01.6 1997 | 1 | 1600 | 1600000
693 | Thu Jan 02 00:00:00 1997 | 1 | 0 | 0
694 | Thu Jan 02 03:04:05 1997 | 1 | 5000 | 5000000
695 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
696 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
697 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
698 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
699 | Tue Jun 10 17:32:01 1997 | 2 | 1000 | 1000000
700 | Sat Sep 22 18:19:20 2001 | 3 | 20000 | 20000000
701 | Wed Mar 15 08:14:01 2000 | 1 | 1000 | 1000000
702 | Wed Mar 15 13:14:02 2000 | 1 | 2000 | 2000000
703 | Wed Mar 15 12:14:03 2000 | 1 | 3000 | 3000000
704 | Wed Mar 15 03:14:04 2000 | 1 | 4000 | 4000000
705 | Wed Mar 15 02:14:05 2000 | 1 | 5000 | 5000000
706 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
707 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
708 | Mon Feb 10 17:32:00 1997 | 1 | 0 | 0
709 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
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:01 1997 | 1 | 1000 | 1000000
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 | Tue Jun 10 18:32:01 1997 | 2 | 1000 | 1000000
719 | Mon Feb 10 17:32:01 1997 | 1 | 1000 | 1000000
720 | Tue Feb 11 17:32:01 1997 | 1 | 1000 | 1000000
721 | Wed Feb 12 17:32:01 1997 | 1 | 1000 | 1000000
722 | Thu Feb 13 17:32:01 1997 | 1 | 1000 | 1000000
723 | Fri Feb 14 17:32:01 1997 | 1 | 1000 | 1000000
724 | Sat Feb 15 17:32:01 1997 | 1 | 1000 | 1000000
725 | Sun Feb 16 17:32:01 1997 | 1 | 1000 | 1000000
726 | Sun Feb 16 17:32:01 1997 | 1 | 1000 | 1000000
727 | Wed Feb 28 17:32:01 1996 | 1 | 1000 | 1000000
728 | Thu Feb 29 17:32:01 1996 | 1 | 1000 | 1000000
729 | Fri Mar 01 17:32:01 1996 | 1 | 1000 | 1000000
730 | Mon Dec 30 17:32:01 1996 | 4 | 1000 | 1000000
731 | Tue Dec 31 17:32:01 1996 | 4 | 1000 | 1000000
732 | Wed Jan 01 17:32:01 1997 | 1 | 1000 | 1000000
733 | Fri Feb 28 17:32:01 1997 | 1 | 1000 | 1000000
734 | Sat Mar 01 17:32:01 1997 | 1 | 1000 | 1000000
735 | Tue Dec 30 17:32:01 1997 | 4 | 1000 | 1000000
736 | Wed Dec 31 17:32:01 1997 | 4 | 1000 | 1000000
737 | Fri Dec 31 17:32:01 1999 | 4 | 1000 | 1000000
738 | Sat Jan 01 17:32:01 2000 | 1 | 1000 | 1000000
739 | Sun Dec 31 17:32:01 2000 | 4 | 1000 | 1000000
740 | Mon Jan 01 17:32:01 2001 | 1 | 1000 | 1000000
743 SELECT '' AS "54", d1 as "timestamp",
744 date_part( 'isoyear', d1) AS isoyear, date_part( 'week', d1) AS week,
745 date_part( 'dow', d1) AS dow
746 FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
747 54 | timestamp | isoyear | week | dow
748 ----+----------------------------+---------+------+-----
749 | Thu Jan 01 00:00:00 1970 | 1970 | 1 | 4
750 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
751 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
752 | Mon Feb 10 17:32:02 1997 | 1997 | 7 | 1
753 | Mon Feb 10 17:32:01.4 1997 | 1997 | 7 | 1
754 | Mon Feb 10 17:32:01.5 1997 | 1997 | 7 | 1
755 | Mon Feb 10 17:32:01.6 1997 | 1997 | 7 | 1
756 | Thu Jan 02 00:00:00 1997 | 1997 | 1 | 4
757 | Thu Jan 02 03:04:05 1997 | 1997 | 1 | 4
758 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
759 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
760 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
761 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
762 | Tue Jun 10 17:32:01 1997 | 1997 | 24 | 2
763 | Sat Sep 22 18:19:20 2001 | 2001 | 38 | 6
764 | Wed Mar 15 08:14:01 2000 | 2000 | 11 | 3
765 | Wed Mar 15 13:14:02 2000 | 2000 | 11 | 3
766 | Wed Mar 15 12:14:03 2000 | 2000 | 11 | 3
767 | Wed Mar 15 03:14:04 2000 | 2000 | 11 | 3
768 | Wed Mar 15 02:14:05 2000 | 2000 | 11 | 3
769 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
770 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
771 | Mon Feb 10 17:32:00 1997 | 1997 | 7 | 1
772 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
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:01 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 | Tue Jun 10 18:32:01 1997 | 1997 | 24 | 2
782 | Mon Feb 10 17:32:01 1997 | 1997 | 7 | 1
783 | Tue Feb 11 17:32:01 1997 | 1997 | 7 | 2
784 | Wed Feb 12 17:32:01 1997 | 1997 | 7 | 3
785 | Thu Feb 13 17:32:01 1997 | 1997 | 7 | 4
786 | Fri Feb 14 17:32:01 1997 | 1997 | 7 | 5
787 | Sat Feb 15 17:32:01 1997 | 1997 | 7 | 6
788 | Sun Feb 16 17:32:01 1997 | 1997 | 7 | 0
789 | Sun Feb 16 17:32:01 1997 | 1997 | 7 | 0
790 | Wed Feb 28 17:32:01 1996 | 1996 | 9 | 3
791 | Thu Feb 29 17:32:01 1996 | 1996 | 9 | 4
792 | Fri Mar 01 17:32:01 1996 | 1996 | 9 | 5
793 | Mon Dec 30 17:32:01 1996 | 1997 | 1 | 1
794 | Tue Dec 31 17:32:01 1996 | 1997 | 1 | 2
795 | Wed Jan 01 17:32:01 1997 | 1997 | 1 | 3
796 | Fri Feb 28 17:32:01 1997 | 1997 | 9 | 5
797 | Sat Mar 01 17:32:01 1997 | 1997 | 9 | 6
798 | Tue Dec 30 17:32:01 1997 | 1998 | 1 | 2
799 | Wed Dec 31 17:32:01 1997 | 1998 | 1 | 3
800 | Fri Dec 31 17:32:01 1999 | 1999 | 52 | 5
801 | Sat Jan 01 17:32:01 2000 | 1999 | 52 | 6
802 | Sun Dec 31 17:32:01 2000 | 2000 | 52 | 0
803 | Mon Jan 01 17:32:01 2001 | 2001 | 1 | 1
807 SELECT '' AS to_char_1, to_char(d1, 'DAY Day day DY Dy dy MONTH Month month RM MON Mon mon')
810 -----------+------------------------------------------------------------------------------------------
813 | THURSDAY Thursday thursday THU Thu thu JANUARY January january I JAN Jan jan
814 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
815 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
816 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
817 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
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 | THURSDAY Thursday thursday THU Thu thu JANUARY January january I JAN Jan jan
821 | THURSDAY Thursday thursday THU Thu thu JANUARY January january I JAN Jan jan
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 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
825 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
826 | TUESDAY Tuesday tuesday TUE Tue tue JUNE June june VI JUN Jun jun
827 | SATURDAY Saturday saturday SAT Sat sat SEPTEMBER September september IX SEP Sep sep
828 | WEDNESDAY Wednesday wednesday WED Wed wed MARCH March march III MAR Mar mar
829 | WEDNESDAY Wednesday wednesday WED Wed wed MARCH March march III MAR Mar mar
830 | WEDNESDAY Wednesday wednesday WED Wed wed MARCH March march III MAR Mar mar
831 | WEDNESDAY Wednesday wednesday WED Wed wed MARCH March march III MAR Mar mar
832 | WEDNESDAY Wednesday wednesday WED Wed wed MARCH March march III MAR Mar mar
833 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
834 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
835 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
836 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
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 | TUESDAY Tuesday tuesday TUE Tue tue JUNE June june VI JUN Jun jun
846 | MONDAY Monday monday MON Mon mon FEBRUARY February february II FEB Feb feb
847 | TUESDAY Tuesday tuesday TUE Tue tue FEBRUARY February february II FEB Feb feb
848 | WEDNESDAY Wednesday wednesday WED Wed wed FEBRUARY February february II FEB Feb feb
849 | THURSDAY Thursday thursday THU Thu thu FEBRUARY February february II FEB Feb feb
850 | FRIDAY Friday friday FRI Fri fri FEBRUARY February february II FEB Feb feb
851 | SATURDAY Saturday saturday SAT Sat sat FEBRUARY February february II FEB Feb feb
852 | SUNDAY Sunday sunday SUN Sun sun FEBRUARY February february II FEB Feb feb
853 | TUESDAY Tuesday tuesday TUE Tue tue FEBRUARY February february II FEB Feb feb
854 | SATURDAY Saturday saturday SAT Sat sat FEBRUARY February february II FEB Feb feb
855 | THURSDAY Thursday thursday THU Thu thu FEBRUARY February february II FEB Feb feb
856 | TUESDAY Tuesday tuesday TUE Tue tue FEBRUARY February february II FEB Feb feb
857 | SATURDAY Saturday saturday SAT Sat sat FEBRUARY February february II FEB Feb feb
858 | THURSDAY Thursday thursday THU Thu thu FEBRUARY February february II FEB Feb feb
859 | TUESDAY Tuesday tuesday TUE Tue tue FEBRUARY February february II FEB Feb feb
860 | SUNDAY Sunday sunday SUN Sun sun FEBRUARY February february II FEB Feb feb
861 | SATURDAY Saturday saturday SAT Sat sat FEBRUARY February february II FEB Feb feb
862 | WEDNESDAY Wednesday wednesday WED Wed wed FEBRUARY February february II FEB Feb feb
863 | THURSDAY Thursday thursday THU Thu thu FEBRUARY February february II FEB Feb feb
864 | FRIDAY Friday friday FRI Fri fri MARCH March march III MAR Mar mar
865 | MONDAY Monday monday MON Mon mon DECEMBER December december XII DEC Dec dec
866 | TUESDAY Tuesday tuesday TUE Tue tue DECEMBER December december XII DEC Dec dec
867 | WEDNESDAY Wednesday wednesday WED Wed wed JANUARY January january I JAN Jan jan
868 | FRIDAY Friday friday FRI Fri fri FEBRUARY February february II FEB Feb feb
869 | SATURDAY Saturday saturday SAT Sat sat MARCH March march III MAR Mar mar
870 | TUESDAY Tuesday tuesday TUE Tue tue DECEMBER December december XII DEC Dec dec
871 | WEDNESDAY Wednesday wednesday WED Wed wed DECEMBER December december XII DEC Dec dec
872 | FRIDAY Friday friday FRI Fri fri DECEMBER December december XII DEC Dec dec
873 | SATURDAY Saturday saturday SAT Sat sat JANUARY January january I JAN Jan jan
874 | SUNDAY Sunday sunday SUN Sun sun DECEMBER December december XII DEC Dec dec
875 | MONDAY Monday monday MON Mon mon JANUARY January january I JAN Jan jan
878 SELECT '' AS to_char_2, to_char(d1, 'FMDAY FMDay FMday FMMONTH FMMonth FMmonth FMRM')
881 -----------+--------------------------------------------------------------
884 | THURSDAY Thursday thursday JANUARY January january I
885 | MONDAY Monday monday FEBRUARY February february II
886 | MONDAY Monday monday FEBRUARY February february II
887 | MONDAY Monday monday FEBRUARY February february II
888 | MONDAY Monday monday FEBRUARY February february II
889 | MONDAY Monday monday FEBRUARY February february II
890 | MONDAY Monday monday FEBRUARY February february II
891 | THURSDAY Thursday thursday JANUARY January january I
892 | THURSDAY Thursday thursday JANUARY January january I
893 | MONDAY Monday monday FEBRUARY February february II
894 | MONDAY Monday monday FEBRUARY February february II
895 | MONDAY Monday monday FEBRUARY February february II
896 | MONDAY Monday monday FEBRUARY February february II
897 | TUESDAY Tuesday tuesday JUNE June june VI
898 | SATURDAY Saturday saturday SEPTEMBER September september IX
899 | WEDNESDAY Wednesday wednesday MARCH March march III
900 | WEDNESDAY Wednesday wednesday MARCH March march III
901 | WEDNESDAY Wednesday wednesday MARCH March march III
902 | WEDNESDAY Wednesday wednesday MARCH March march III
903 | WEDNESDAY Wednesday wednesday MARCH March march III
904 | MONDAY Monday monday FEBRUARY February february II
905 | MONDAY Monday monday FEBRUARY February february II
906 | MONDAY Monday monday FEBRUARY February february II
907 | MONDAY Monday monday FEBRUARY February february II
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 | TUESDAY Tuesday tuesday JUNE June june VI
917 | MONDAY Monday monday FEBRUARY February february II
918 | TUESDAY Tuesday tuesday FEBRUARY February february II
919 | WEDNESDAY Wednesday wednesday FEBRUARY February february II
920 | THURSDAY Thursday thursday FEBRUARY February february II
921 | FRIDAY Friday friday FEBRUARY February february II
922 | SATURDAY Saturday saturday FEBRUARY February february II
923 | SUNDAY Sunday sunday FEBRUARY February february II
924 | TUESDAY Tuesday tuesday FEBRUARY February february II
925 | SATURDAY Saturday saturday FEBRUARY February february II
926 | THURSDAY Thursday thursday FEBRUARY February february II
927 | TUESDAY Tuesday tuesday FEBRUARY February february II
928 | SATURDAY Saturday saturday FEBRUARY February february II
929 | THURSDAY Thursday thursday FEBRUARY February february II
930 | TUESDAY Tuesday tuesday FEBRUARY February february II
931 | SUNDAY Sunday sunday FEBRUARY February february II
932 | SATURDAY Saturday saturday FEBRUARY February february II
933 | WEDNESDAY Wednesday wednesday FEBRUARY February february II
934 | THURSDAY Thursday thursday FEBRUARY February february II
935 | FRIDAY Friday friday MARCH March march III
936 | MONDAY Monday monday DECEMBER December december XII
937 | TUESDAY Tuesday tuesday DECEMBER December december XII
938 | WEDNESDAY Wednesday wednesday JANUARY January january I
939 | FRIDAY Friday friday FEBRUARY February february II
940 | SATURDAY Saturday saturday MARCH March march III
941 | TUESDAY Tuesday tuesday DECEMBER December december XII
942 | WEDNESDAY Wednesday wednesday DECEMBER December december XII
943 | FRIDAY Friday friday DECEMBER December december XII
944 | SATURDAY Saturday saturday JANUARY January january I
945 | SUNDAY Sunday sunday DECEMBER December december XII
946 | MONDAY Monday monday JANUARY January january I
949 SELECT '' AS to_char_3, to_char(d1, 'Y,YYY YYYY YYY YY Y CC Q MM WW DDD DD D J')
952 -----------+-------------------------------------------------
955 | 1,970 1970 970 70 0 20 1 01 01 001 01 5 2440588
956 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
957 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
958 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
959 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
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 01 01 002 02 5 2450451
963 | 1,997 1997 997 97 7 20 1 01 01 002 02 5 2450451
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 02 06 041 10 2 2450490
967 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
968 | 1,997 1997 997 97 7 20 2 06 23 161 10 3 2450610
969 | 2,001 2001 001 01 1 21 3 09 38 265 22 7 2452175
970 | 2,000 2000 000 00 0 20 1 03 11 075 15 4 2451619
971 | 2,000 2000 000 00 0 20 1 03 11 075 15 4 2451619
972 | 2,000 2000 000 00 0 20 1 03 11 075 15 4 2451619
973 | 2,000 2000 000 00 0 20 1 03 11 075 15 4 2451619
974 | 2,000 2000 000 00 0 20 1 03 11 075 15 4 2451619
975 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
976 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
977 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
978 | 1,997 1997 997 97 7 20 1 02 06 041 10 2 2450490
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 2 06 23 161 10 3 2450610
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 042 11 3 2450491
990 | 1,997 1997 997 97 7 20 1 02 07 043 12 4 2450492
991 | 1,997 1997 997 97 7 20 1 02 07 044 13 5 2450493
992 | 1,997 1997 997 97 7 20 1 02 07 045 14 6 2450494
993 | 1,997 1997 997 97 7 20 1 02 07 046 15 7 2450495
994 | 1,997 1997 997 97 7 20 1 02 07 047 16 1 2450496
995 | 0,097 0097 097 97 7 01 1 02 07 047 16 3 1686042
996 | 0,097 0097 097 97 7 01 1 02 07 047 16 7 1756536
997 | 0,597 0597 597 97 7 06 1 02 07 047 16 5 1939157
998 | 1,097 1097 097 97 7 11 1 02 07 047 16 3 2121778
999 | 1,697 1697 697 97 7 17 1 02 07 047 16 7 2340924
1000 | 1,797 1797 797 97 7 18 1 02 07 047 16 5 2377448
1001 | 1,897 1897 897 97 7 19 1 02 07 047 16 3 2413972
1002 | 1,997 1997 997 97 7 20 1 02 07 047 16 1 2450496
1003 | 2,097 2097 097 97 7 21 1 02 07 047 16 7 2487021
1004 | 1,996 1996 996 96 6 20 1 02 09 059 28 4 2450142
1005 | 1,996 1996 996 96 6 20 1 02 09 060 29 5 2450143
1006 | 1,996 1996 996 96 6 20 1 03 09 061 01 6 2450144
1007 | 1,996 1996 996 96 6 20 4 12 53 365 30 2 2450448
1008 | 1,996 1996 996 96 6 20 4 12 53 366 31 3 2450449
1009 | 1,997 1997 997 97 7 20 1 01 01 001 01 4 2450450
1010 | 1,997 1997 997 97 7 20 1 02 09 059 28 6 2450508
1011 | 1,997 1997 997 97 7 20 1 03 09 060 01 7 2450509
1012 | 1,997 1997 997 97 7 20 4 12 52 364 30 3 2450813
1013 | 1,997 1997 997 97 7 20 4 12 53 365 31 4 2450814
1014 | 1,999 1999 999 99 9 20 4 12 53 365 31 6 2451544
1015 | 2,000 2000 000 00 0 20 1 01 01 001 01 7 2451545
1016 | 2,000 2000 000 00 0 20 4 12 53 366 31 1 2451910
1017 | 2,001 2001 001 01 1 21 1 01 01 001 01 2 2451911
1020 SELECT '' AS to_char_4, to_char(d1, 'FMY,YYY FMYYYY FMYYY FMYY FMY FMCC FMQ FMMM FMWW FMDDD FMDD FMD FMJ')
1023 -----------+-------------------------------------------------
1026 | 1,970 1970 970 70 0 20 1 1 1 1 1 5 2440588
1027 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1028 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1029 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1030 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
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 1 1 2 2 5 2450451
1034 | 1,997 1997 997 97 7 20 1 1 1 2 2 5 2450451
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 2 6 41 10 2 2450490
1038 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1039 | 1,997 1997 997 97 7 20 2 6 23 161 10 3 2450610
1040 | 2,001 2001 1 1 1 21 3 9 38 265 22 7 2452175
1041 | 2,000 2000 0 0 0 20 1 3 11 75 15 4 2451619
1042 | 2,000 2000 0 0 0 20 1 3 11 75 15 4 2451619
1043 | 2,000 2000 0 0 0 20 1 3 11 75 15 4 2451619
1044 | 2,000 2000 0 0 0 20 1 3 11 75 15 4 2451619
1045 | 2,000 2000 0 0 0 20 1 3 11 75 15 4 2451619
1046 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1047 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1048 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
1049 | 1,997 1997 997 97 7 20 1 2 6 41 10 2 2450490
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 2 6 23 161 10 3 2450610
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 42 11 3 2450491
1061 | 1,997 1997 997 97 7 20 1 2 7 43 12 4 2450492
1062 | 1,997 1997 997 97 7 20 1 2 7 44 13 5 2450493
1063 | 1,997 1997 997 97 7 20 1 2 7 45 14 6 2450494
1064 | 1,997 1997 997 97 7 20 1 2 7 46 15 7 2450495
1065 | 1,997 1997 997 97 7 20 1 2 7 47 16 1 2450496
1066 | 0,097 97 97 97 7 1 1 2 7 47 16 3 1686042
1067 | 0,097 97 97 97 7 1 1 2 7 47 16 7 1756536
1068 | 0,597 597 597 97 7 6 1 2 7 47 16 5 1939157
1069 | 1,097 1097 97 97 7 11 1 2 7 47 16 3 2121778
1070 | 1,697 1697 697 97 7 17 1 2 7 47 16 7 2340924
1071 | 1,797 1797 797 97 7 18 1 2 7 47 16 5 2377448
1072 | 1,897 1897 897 97 7 19 1 2 7 47 16 3 2413972
1073 | 1,997 1997 997 97 7 20 1 2 7 47 16 1 2450496
1074 | 2,097 2097 97 97 7 21 1 2 7 47 16 7 2487021
1075 | 1,996 1996 996 96 6 20 1 2 9 59 28 4 2450142
1076 | 1,996 1996 996 96 6 20 1 2 9 60 29 5 2450143
1077 | 1,996 1996 996 96 6 20 1 3 9 61 1 6 2450144
1078 | 1,996 1996 996 96 6 20 4 12 53 365 30 2 2450448
1079 | 1,996 1996 996 96 6 20 4 12 53 366 31 3 2450449
1080 | 1,997 1997 997 97 7 20 1 1 1 1 1 4 2450450
1081 | 1,997 1997 997 97 7 20 1 2 9 59 28 6 2450508
1082 | 1,997 1997 997 97 7 20 1 3 9 60 1 7 2450509
1083 | 1,997 1997 997 97 7 20 4 12 52 364 30 3 2450813
1084 | 1,997 1997 997 97 7 20 4 12 53 365 31 4 2450814
1085 | 1,999 1999 999 99 9 20 4 12 53 365 31 6 2451544
1086 | 2,000 2000 0 0 0 20 1 1 1 1 1 7 2451545
1087 | 2,000 2000 0 0 0 20 4 12 53 366 31 1 2451910
1088 | 2,001 2001 1 1 1 21 1 1 1 1 1 2 2451911
1091 SELECT '' AS to_char_5, to_char(d1, 'HH HH12 HH24 MI SS SSSS')
1094 -----------+----------------------
1098 | 05 05 17 32 01 63121
1099 | 05 05 17 32 01 63121
1100 | 05 05 17 32 02 63122
1101 | 05 05 17 32 01 63121
1102 | 05 05 17 32 01 63121
1103 | 05 05 17 32 01 63121
1105 | 03 03 03 04 05 11045
1106 | 05 05 17 32 01 63121
1107 | 05 05 17 32 01 63121
1108 | 05 05 17 32 01 63121
1109 | 05 05 17 32 01 63121
1110 | 05 05 17 32 01 63121
1111 | 06 06 18 19 20 65960
1112 | 08 08 08 14 01 29641
1113 | 01 01 13 14 02 47642
1114 | 12 12 12 14 03 44043
1115 | 03 03 03 14 04 11644
1116 | 02 02 02 14 05 8045
1117 | 05 05 17 32 01 63121
1118 | 05 05 17 32 01 63121
1119 | 05 05 17 32 00 63120
1120 | 05 05 17 32 01 63121
1121 | 05 05 17 32 01 63121
1122 | 05 05 17 32 01 63121
1123 | 05 05 17 32 01 63121
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 | 06 06 18 32 01 66721
1130 | 05 05 17 32 01 63121
1131 | 05 05 17 32 01 63121
1132 | 05 05 17 32 01 63121
1133 | 05 05 17 32 01 63121
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
1162 SELECT '' AS to_char_6, to_char(d1, E'"HH:MI:SS is" HH:MI:SS "\\"text between quote marks\\""')
1165 -----------+-------------------------------------------------
1168 | HH:MI:SS is 12:00:00 "text between quote marks"
1169 | HH:MI:SS is 05:32:01 "text between quote marks"
1170 | HH:MI:SS is 05:32:01 "text between quote marks"
1171 | HH:MI:SS is 05:32:02 "text between quote marks"
1172 | HH:MI:SS is 05:32:01 "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 12:00:00 "text between quote marks"
1176 | HH:MI:SS is 03:04:05 "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 05:32:01 "text between quote marks"
1180 | HH:MI:SS is 05:32:01 "text between quote marks"
1181 | HH:MI:SS is 05:32:01 "text between quote marks"
1182 | HH:MI:SS is 06:19:20 "text between quote marks"
1183 | HH:MI:SS is 08:14:01 "text between quote marks"
1184 | HH:MI:SS is 01:14:02 "text between quote marks"
1185 | HH:MI:SS is 12:14:03 "text between quote marks"
1186 | HH:MI:SS is 03:14:04 "text between quote marks"
1187 | HH:MI:SS is 02:14:05 "text between quote marks"
1188 | HH:MI:SS is 05:32:01 "text between quote marks"
1189 | HH:MI:SS is 05:32:01 "text between quote marks"
1190 | HH:MI:SS is 05:32:00 "text between quote marks"
1191 | HH:MI:SS is 05:32:01 "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:01 "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 06: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 05: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"
1233 SELECT '' AS to_char_7, to_char(d1, 'HH24--text--MI--text--SS')
1236 -----------+------------------------
1239 | 00--text--00--text--00
1240 | 17--text--32--text--01
1241 | 17--text--32--text--01
1242 | 17--text--32--text--02
1243 | 17--text--32--text--01
1244 | 17--text--32--text--01
1245 | 17--text--32--text--01
1246 | 00--text--00--text--00
1247 | 03--text--04--text--05
1248 | 17--text--32--text--01
1249 | 17--text--32--text--01
1250 | 17--text--32--text--01
1251 | 17--text--32--text--01
1252 | 17--text--32--text--01
1253 | 18--text--19--text--20
1254 | 08--text--14--text--01
1255 | 13--text--14--text--02
1256 | 12--text--14--text--03
1257 | 03--text--14--text--04
1258 | 02--text--14--text--05
1259 | 17--text--32--text--01
1260 | 17--text--32--text--01
1261 | 17--text--32--text--00
1262 | 17--text--32--text--01
1263 | 17--text--32--text--01
1264 | 17--text--32--text--01
1265 | 17--text--32--text--01
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 | 18--text--32--text--01
1272 | 17--text--32--text--01
1273 | 17--text--32--text--01
1274 | 17--text--32--text--01
1275 | 17--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
1304 SELECT '' AS to_char_8, to_char(d1, 'YYYYTH YYYYth Jth')
1307 -----------+-------------------------
1310 | 1970TH 1970th 2440588th
1311 | 1997TH 1997th 2450490th
1312 | 1997TH 1997th 2450490th
1313 | 1997TH 1997th 2450490th
1314 | 1997TH 1997th 2450490th
1315 | 1997TH 1997th 2450490th
1316 | 1997TH 1997th 2450490th
1317 | 1997TH 1997th 2450451st
1318 | 1997TH 1997th 2450451st
1319 | 1997TH 1997th 2450490th
1320 | 1997TH 1997th 2450490th
1321 | 1997TH 1997th 2450490th
1322 | 1997TH 1997th 2450490th
1323 | 1997TH 1997th 2450610th
1324 | 2001ST 2001st 2452175th
1325 | 2000TH 2000th 2451619th
1326 | 2000TH 2000th 2451619th
1327 | 2000TH 2000th 2451619th
1328 | 2000TH 2000th 2451619th
1329 | 2000TH 2000th 2451619th
1330 | 1997TH 1997th 2450490th
1331 | 1997TH 1997th 2450490th
1332 | 1997TH 1997th 2450490th
1333 | 1997TH 1997th 2450490th
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 2450610th
1343 | 1997TH 1997th 2450490th
1344 | 1997TH 1997th 2450491st
1345 | 1997TH 1997th 2450492nd
1346 | 1997TH 1997th 2450493rd
1347 | 1997TH 1997th 2450494th
1348 | 1997TH 1997th 2450495th
1349 | 1997TH 1997th 2450496th
1350 | 0097TH 0097th 1686042nd
1351 | 0097TH 0097th 1756536th
1352 | 0597TH 0597th 1939157th
1353 | 1097TH 1097th 2121778th
1354 | 1697TH 1697th 2340924th
1355 | 1797TH 1797th 2377448th
1356 | 1897TH 1897th 2413972nd
1357 | 1997TH 1997th 2450496th
1358 | 2097TH 2097th 2487021st
1359 | 1996TH 1996th 2450142nd
1360 | 1996TH 1996th 2450143rd
1361 | 1996TH 1996th 2450144th
1362 | 1996TH 1996th 2450448th
1363 | 1996TH 1996th 2450449th
1364 | 1997TH 1997th 2450450th
1365 | 1997TH 1997th 2450508th
1366 | 1997TH 1997th 2450509th
1367 | 1997TH 1997th 2450813th
1368 | 1997TH 1997th 2450814th
1369 | 1999TH 1999th 2451544th
1370 | 2000TH 2000th 2451545th
1371 | 2000TH 2000th 2451910th
1372 | 2001ST 2001st 2451911th
1375 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')
1378 -----------+---------------------------------------------------------------------
1381 | 1970 A.D. 1970 a.d. 1970 ad 12:00:00 A.M. 12:00:00 a.m. 12:00:00 am
1382 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1383 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1384 | 1997 A.D. 1997 a.d. 1997 ad 05:32:02 P.M. 05:32:02 p.m. 05:32:02 pm
1385 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1386 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
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 12:00:00 A.M. 12:00:00 a.m. 12:00:00 am
1389 | 1997 A.D. 1997 a.d. 1997 ad 03:04:05 A.M. 03:04:05 a.m. 03:04:05 am
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 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1394 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1395 | 2001 A.D. 2001 a.d. 2001 ad 06:19:20 P.M. 06:19:20 p.m. 06:19:20 pm
1396 | 2000 A.D. 2000 a.d. 2000 ad 08:14:01 A.M. 08:14:01 a.m. 08:14:01 am
1397 | 2000 A.D. 2000 a.d. 2000 ad 01:14:02 P.M. 01:14:02 p.m. 01:14:02 pm
1398 | 2000 A.D. 2000 a.d. 2000 ad 12:14:03 P.M. 12:14:03 p.m. 12:14:03 pm
1399 | 2000 A.D. 2000 a.d. 2000 ad 03:14:04 A.M. 03:14:04 a.m. 03:14:04 am
1400 | 2000 A.D. 2000 a.d. 2000 ad 02:14:05 A.M. 02:14:05 a.m. 02:14:05 am
1401 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1402 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1403 | 1997 A.D. 1997 a.d. 1997 ad 05:32:00 P.M. 05:32:00 p.m. 05:32:00 pm
1404 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1405 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
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:01 P.M. 05:32:01 p.m. 05:32:01 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 06:32:01 P.M. 06:32:01 p.m. 06: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 05:32:01 P.M. 05:32:01 p.m. 05: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 | 0097 B.C. 0097 b.c. 0097 bc 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1422 | 0097 A.D. 0097 a.d. 0097 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1423 | 0597 A.D. 0597 a.d. 0597 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1424 | 1097 A.D. 1097 a.d. 1097 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1425 | 1697 A.D. 1697 a.d. 1697 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1426 | 1797 A.D. 1797 a.d. 1797 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1427 | 1897 A.D. 1897 a.d. 1897 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1428 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1429 | 2097 A.D. 2097 a.d. 2097 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1430 | 1996 A.D. 1996 a.d. 1996 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1431 | 1996 A.D. 1996 a.d. 1996 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1432 | 1996 A.D. 1996 a.d. 1996 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1433 | 1996 A.D. 1996 a.d. 1996 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1434 | 1996 A.D. 1996 a.d. 1996 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1435 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1436 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1437 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1438 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1439 | 1997 A.D. 1997 a.d. 1997 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1440 | 1999 A.D. 1999 a.d. 1999 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1441 | 2000 A.D. 2000 a.d. 2000 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1442 | 2000 A.D. 2000 a.d. 2000 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1443 | 2001 A.D. 2001 a.d. 2001 ad 05:32:01 P.M. 05:32:01 p.m. 05:32:01 pm
1446 SELECT '' AS to_char_10, to_char(d1, 'IYYY IYY IY I IW IDDD ID')
1448 to_char_10 | to_char
1449 ------------+------------------------
1452 | 1970 970 70 0 01 004 4
1453 | 1997 997 97 7 07 043 1
1454 | 1997 997 97 7 07 043 1
1455 | 1997 997 97 7 07 043 1
1456 | 1997 997 97 7 07 043 1
1457 | 1997 997 97 7 07 043 1
1458 | 1997 997 97 7 07 043 1
1459 | 1997 997 97 7 01 004 4
1460 | 1997 997 97 7 01 004 4
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 07 043 1
1465 | 1997 997 97 7 24 163 2
1466 | 2001 001 01 1 38 265 6
1467 | 2000 000 00 0 11 073 3
1468 | 2000 000 00 0 11 073 3
1469 | 2000 000 00 0 11 073 3
1470 | 2000 000 00 0 11 073 3
1471 | 2000 000 00 0 11 073 3
1472 | 1997 997 97 7 07 043 1
1473 | 1997 997 97 7 07 043 1
1474 | 1997 997 97 7 07 043 1
1475 | 1997 997 97 7 07 043 1
1476 | 1997 997 97 7 07 043 1
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 24 163 2
1485 | 1997 997 97 7 07 043 1
1486 | 1997 997 97 7 07 044 2
1487 | 1997 997 97 7 07 045 3
1488 | 1997 997 97 7 07 046 4
1489 | 1997 997 97 7 07 047 5
1490 | 1997 997 97 7 07 048 6
1491 | 1997 997 97 7 07 049 7
1492 | 0097 097 97 7 07 044 2
1493 | 0097 097 97 7 07 048 6
1494 | 0597 597 97 7 07 046 4
1495 | 1097 097 97 7 07 044 2
1496 | 1697 697 97 7 07 048 6
1497 | 1797 797 97 7 07 046 4
1498 | 1897 897 97 7 07 044 2
1499 | 1997 997 97 7 07 049 7
1500 | 2097 097 97 7 07 048 6
1501 | 1996 996 96 6 09 059 3
1502 | 1996 996 96 6 09 060 4
1503 | 1996 996 96 6 09 061 5
1504 | 1997 997 97 7 01 001 1
1505 | 1997 997 97 7 01 002 2
1506 | 1997 997 97 7 01 003 3
1507 | 1997 997 97 7 09 061 5
1508 | 1997 997 97 7 09 062 6
1509 | 1998 998 98 8 01 002 2
1510 | 1998 998 98 8 01 003 3
1511 | 1999 999 99 9 52 362 5
1512 | 1999 999 99 9 52 363 6
1513 | 2000 000 00 0 52 364 7
1514 | 2001 001 01 1 01 001 1
1517 SELECT '' AS to_char_11, to_char(d1, 'FMIYYY FMIYY FMIY FMI FMIW FMIDDD FMID')
1519 to_char_11 | to_char
1520 ------------+------------------------
1523 | 1970 970 70 0 1 4 4
1524 | 1997 997 97 7 7 43 1
1525 | 1997 997 97 7 7 43 1
1526 | 1997 997 97 7 7 43 1
1527 | 1997 997 97 7 7 43 1
1528 | 1997 997 97 7 7 43 1
1529 | 1997 997 97 7 7 43 1
1530 | 1997 997 97 7 1 4 4
1531 | 1997 997 97 7 1 4 4
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 7 43 1
1536 | 1997 997 97 7 24 163 2
1537 | 2001 1 1 1 38 265 6
1538 | 2000 0 0 0 11 73 3
1539 | 2000 0 0 0 11 73 3
1540 | 2000 0 0 0 11 73 3
1541 | 2000 0 0 0 11 73 3
1542 | 2000 0 0 0 11 73 3
1543 | 1997 997 97 7 7 43 1
1544 | 1997 997 97 7 7 43 1
1545 | 1997 997 97 7 7 43 1
1546 | 1997 997 97 7 7 43 1
1547 | 1997 997 97 7 7 43 1
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 24 163 2
1556 | 1997 997 97 7 7 43 1
1557 | 1997 997 97 7 7 44 2
1558 | 1997 997 97 7 7 45 3
1559 | 1997 997 97 7 7 46 4
1560 | 1997 997 97 7 7 47 5
1561 | 1997 997 97 7 7 48 6
1562 | 1997 997 97 7 7 49 7
1565 | 597 597 97 7 7 46 4
1566 | 1097 97 97 7 7 44 2
1567 | 1697 697 97 7 7 48 6
1568 | 1797 797 97 7 7 46 4
1569 | 1897 897 97 7 7 44 2
1570 | 1997 997 97 7 7 49 7
1571 | 2097 97 97 7 7 48 6
1572 | 1996 996 96 6 9 59 3
1573 | 1996 996 96 6 9 60 4
1574 | 1996 996 96 6 9 61 5
1575 | 1997 997 97 7 1 1 1
1576 | 1997 997 97 7 1 2 2
1577 | 1997 997 97 7 1 3 3
1578 | 1997 997 97 7 9 61 5
1579 | 1997 997 97 7 9 62 6
1580 | 1998 998 98 8 1 2 2
1581 | 1998 998 98 8 1 3 3
1582 | 1999 999 99 9 52 362 5
1583 | 1999 999 99 9 52 363 6
1584 | 2000 0 0 0 52 364 7