Oracle函数日期转换成秒(时间戳)
SELECT TO_NUMBER(TO_DATE('2015-01-01 05:00:00', 'YYYY-MM-DD HH24:MI:SS') - TO_DATE('1970-01-01 8:0:0', 'YYYY-MM-DD HH24:MI:SS')) * 24 * 60 * 60 FROM DUAL;
秒转日期
SELECT TO_DATE('1970-1-1 8:0:0','YYYY-MM-DD HH24:MI:SS')+(1430020800/(3600*24)) FROM DUAL