This Oracle tutorial explains how to use the Oracle/PLSQL SESSIONTIMEZONE function with syntax and examples.
The Oracle/PLSQL SESSIONTIMEZONE function returns the current session's time zone as a time zone offset (in the following format: '[+|-]TZH:TZM') or a time zone region name.
The syntax for the SESSIONTIMEZONE function in Oracle/PLSQL is:
There are no parameters or arguments for the SESSIONTIMEZONE function.
The SESSIONTIMEZONE function returns a time zone offset (in the following format: '[+|-]TZH:TZM') or a time zone region name.
The SESSIONTIMEZONE function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle SESSIONTIMEZONE function examples and explore how to use the SESSIONTIMEZONE function in Oracle/PLSQL.
For example:
The SESSIONTIMEZONE function might return a value like this:
or a value such as this:
The value returned depends on how the user specified the session time zone value in the most recent ALTER SESSION statement. An example of an ALTER SESSION command is: