select sysdate,
(to_date(to_char(sysdate, 'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
-
to_date('1970-01-01 08:00:00', 'yyyy-mm-dd hh24:mi:ss')) * 24 * 60 * 60 * 1000
now
from dual
select sysdate,
(to_date(to_char(sysdate, 'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
-
to_date('1970-01-01 08:00:00', 'yyyy-mm-dd hh24:mi:ss')) * 24 * 60 * 60 * 1000
now
from dual