毫秒的日期


选择to_char(1406538765000 /(1000 * 60 * 60 * 24)+
to_date('1970-01-01 08:00:00 ','yyyy-mm-dd HH:MI:SS),'yyyy-mm-dd hh24:MI:SS)作为CDate
从双;


日期转换的毫秒


选择to_number(to_date('2014-07-28 17:12:45 ','yyyy-mm-dd hh24:MI:SS)—
to_date('1970-01-01 8:0:0 ','yyyy-mm-dd hh24:MI:SS))* 24 * 60 * 60 * 1000
从双;


获取系统当前时间


选择to_char(SYSDATE,'yyyy-mm-dd hh24:MI:SS)从双;


注意:毫秒转换到日期格式化的时间可以是12小时和24小时。