declare v_num number(20); begin v_num := round((sysdate) - date \'1970-01-01\')*24*60*60; dbms_output.put_line(v_num); end;
I have tried this