Using the 'get_tz' Option
The 'get_tz' option returns the $TZ string that shows the time zone of the current session.
The following example uses the 'get_tz' option in a query
of the cust_calls table of the stores_demo database:
EXEC SQL select first call_dtime, dbinfo('get_tz') from cust_calls where customer_num = 106;
This example returns a string value of the session time zone and
the first call_dtime value in the cust_calls table for
which the customer_num value is 106
.