TO_CHAR(1538323199999/ (1000 * 60 * 60 * 24) + TO_DATE('1970-01-01 08:00:00', 'YYYY-MM-DD HH24:MI:SS'), 'YYYY-MM-DD HH24:MI:SS') TIME
或者:
SELECT TIMEMILLIS_TO_ORACLE(1538323199999) TIME from dual;
结果:yyyy-MM-dd hh:mi:ss
TIME:2018-09-30 23:59:59
TO_CHAR(1538323199999/ (1000 * 60 * 60 * 24) + TO_DATE('1970-01-01 08:00:00', 'YYYY-MM-DD HH24:MI:SS'), 'YYYY-MM-DD HH24:MI:SS') TIME
或者:
SELECT TIMEMILLIS_TO_ORACLE(1538323199999) TIME from dual;
结果:yyyy-MM-dd hh:mi:ss
TIME:2018-09-30 23:59:59