Definition:
In Oracle PL/SQL, SYS_EXTRACT_UTC is a built in function which returns the Greenwich Mean Time or Coordinated Universal Time for input datetime value with time zone offset.
Example Syntax:
SYS_EXTRACT_UTC ( datetime_with_timezone )
Example Usage:
The SQL example below extracts GMT based on time zone region name IST:
SQL> SELECT SYS_EXTRACT_UTC(TIMESTAMP '2010-01-27 09:49:00.00 -05:30')
FROM DUAL;
SYS_EXTRACT_UTC(TIMESTAMP '2010-01-2709:49:00.00-05:30')
---------------------------------------------------------
27-JAN-10 03.19.00.000000000 PM
Related Links:
Related Code Snippets: