Note:
DATETIME-TZ ( date-exp , mtime-exp , timezone-exp )
DATETIME-TZ ( datetime-exp , timezone-exp )
DATETIME-TZ ( datetime-tz-exp , timezone-exp )
DATETIME-TZ ( month , day , year , hours , minutes, seconds , milliseconds , timezone-exp )
DATETIME-TZ ( string )A character expression whose value is a string containing a DATETIME-TZ. The date portion of the string must have the format specified by the DATE-FORMAT attribute. The time portion must be in a valid time format (HH:MM:SS, and so on). If the string contains a time zone, it must be in +HH:MM format. If the string does not contain a time zone, the DATETIME-TZ inherits the session’s time zone.
DEFINE VARIABLE my-datetime-tz AS DATETIME-TZ NO-UNDO./* This statement is equivalent to "my-datetime-tz = NOW". */my-datetime-tz = DATETIME-TZ(TODAY, MTIME, TIMEZONE).
my-datetime-tz = DATETIME-TZ(5, 5, 2002, 7, 15, 3, 0, -300).my-datetime-tz = DATETIME-TZ(“05-05-2002 07:15:03-05:00”).
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |