Skip to content

Instantly share code, notes, and snippets.

@ryanthames
Created October 28, 2020 13:28
Show Gist options
  • Save ryanthames/aa68b1473e5a9db3159e7fe0da7ea5e8 to your computer and use it in GitHub Desktop.
Save ryanthames/aa68b1473e5a9db3159e7fe0da7ea5e8 to your computer and use it in GitHub Desktop.
Convert milliseconds to timestamp in oracle
select to_char(to_date('1970-01-01 00', 'yyyy-mm-dd hh24') + (1601921560000)/1000/60/60/24, 'YYYY-MM-DD HH12:MI:SS am') datestr from dual;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment