This Oracle tutorial explains how to use the Oracle/PLSQL TZ_OFFSET function with syntax and examples.
The Oracle/PLSQL TZ_OFFSET function returns the time zone offset of a value.
The syntax for the TZ_OFFSET function in Oracle/PLSQL is:
A valid time zone name, a time zone offset from UTC, the SESSIONTIMEZONE function, or the DBTIMEZONE function. Some of the more commonly used time zone names are:
Canada/Atlantic | Pacific/Easter |
Canada/Central | Pacific/Honolulu |
Canada/East-Saskatchewan | Pacific/Kwajalein |
Canada/Eastern | Pacific/Pago_Pago |
Canada/Mountain | Pacific/Samoa |
Canada/Newfoundland | US/Alaska |
Canada/Pacific | US/Aleutian |
Canada/Saskatchewan | US/Arizona |
Canada/Yukon | US/Central |
Europe/Dublin | US/East-Indiana |
Europe/Istanbul | US/Eastern |
Europe/Lisbon | US/Hawaii |
Europe/London | US/Michigan |
Europe/Moscow | US/Mountain |
Europe/Warsaw | US/Pacific |
Greenwich | US/Pacific-New |
Pacific/Auckland | US/Samoa |
Pacific/Chatham |
The TZ_OFFSET function returns a time zone offset value.
To find more time zone values, you can run the following query:
The TZ_OFFSET function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle TZ_OFFSET function examples and explore how to use the TZ_OFFSET function in Oracle/PLSQL.
For example: