SYS_TIMESTAMP_PHYSICAL

Use the SYS_TIMESTAMP_PHYSICAL script function to retrieve the current date and time at the time of processing, in YYYY-MM-DD HH:MM:SS format. The script function lets you specify a time zone.

Syntax

SYS_TIMESTAMP_PHYSICAL ([Time Zone|UTC])

Parameters

Example

The following example determines the current date and time in Sydney. The script function uses a Time Zone object called TZ.SYD, which is configured for Australian Eastern Standard Time. The retrieved timestamp is printed in the activation report.

:SET &NOW# = SYS_TIMESTAMP_PHYSICAL("TZ.SYD")
:
PRINT &NOW#

See also:

seealso

Script Elements for System Conditions and Settings