Oracle TO_TIMESTAMP_TZ Function


/ Published in: SQL
Save to your folder(s)

A few examples of the TO_TIMESTAMP_TZ function.


Copy this code and paste it in your HTML
  1. SELECT TO_TIMESTAMP_TZ('8-DEC-15 10:04:01 AM +2:00') AS TS_TEST FROM dual;
  2.  
  3. SELECT TO_TIMESTAMP_TZ('8-DEC-2015 02:44 AM +6:00', 'DD-MON-YYYY HH:MI AM TZH:TZM') AS TS_TEST FROM dual;
  4.  
  5. SELECT TO_TIMESTAMP_TZ('12-DEC-2015 6:51 PM -11:00', 'DD-MON-YYYY HH:MI AM TZH:TZM') AS TS_TEST FROM dual;

URL: http://www.databasestar.com/oracle-to_timestamp_tz/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.