Thanks for the question, Mercy.
Asked: February 03, 2021 - 7:26 pm UTC
Last updated: February 04, 2021 - 4:22 am UTC
Version: Version 17.3.1.279
Viewed 1000+ times
SQL> with t as 2 ( select to_timestamp('Mon Jan 25 2021 15:01:07','Dy Mon DD YYYY HH24:MI:SS') d 3 from dual 4 ) 5 select from_tz(d,'CST') at time zone 'Australia/Perth' from t; FROM_TZ(D,'CST')ATTIMEZONE'AUSTRALIA/PERTH' --------------------------------------------------------------------------- 26-JAN-21 05.01.07.000000000 AM AUSTRALIA/PERTH
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library