Specifies the time zone offset from UTC, in minutes, to use for the current session.
Data type: INTEGER
Access: Readable/Writeable
Applies to: SESSION system handle
For example, the following code shows how TIMEZONE Is used in a direct assignment of a DATE value to a DATETIME-TZ value:
DEFINE VARIABLE dDate AS DATE NO-UNDO. DEFINE VARIABLE tzDate AS DATETIME-TZ NO-UNDO. dDate = 1/25. tzDate = dDate. DISPLAY tzDate. |
01/25/2016 00:00:00.000-5:00 |
01/25/2016 07:00:00.000+2:00 |
For more information on assignments with time data types, see the ASSIGN statement.