By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version |
|---|
| PostgreSQL 17.2 (Debian 17.2-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit |
SELECT 1
| extract | ?column? |
|---|---|
| 1451606399 | One second before midnight, 2015 - OK |
| 1451606400 | 23:59:60 2015 = 00:00:00 2016 - why no error? |
| 1451606400 | 00:00:00 2016 - OK! |
| 1451606401 | 00:00:01 2016 - OK |
SELECT 4
| extract | ?column? |
|---|---|
| 1483228799 | One second before midnight, 2016 - OK |
| 1483228800 | Midnight 2016/00:00:00 2017 - OK, leap second, but why same value of EPOCH? |
| 1483228800 | 00:00:00 2017 - OK, but why is the EPOCH the same? |
| 1483228801 | 00:00:01 2017 - OK or not? |
SELECT 4
| extract |
|---|
| 1451606400 |
SELECT 1
| ?column? | ?column? |
|---|---|
| 1.0027397260273973 | 1.00000000000000000000 |
SELECT 1