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

 

posted on 2015-05-27 15:21  凌度  阅读(10789)  评论(0编辑  收藏  举报