0%
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| SELECT TO_NUMBER((TO_DATE('2017-03-31', 'YYYY-MM-DD HH24:MI:SS') - TO_DATE('1970-01-01 08:00:00', 'YYYY-MM-DD HH24:MI:SS')) * 24 * 60 * 60, 'FM9999999999') FROM DUAL;
SELECT TO_CHAR(1490889600 / (60 * 60 * 24) + TO_DATE('1970-01-01 08:00:00', 'YYYY-MM-DD HH24:MI:SS'), 'YYYY-MM-DD') FROM DUAL;
|