List of expression elements / Date and time operators |
The CURRENT operator returns the current system date and time.
CURRENT [ qual1 TO qual2 [(scale)] ]
The CURRENT operator returns the system date/time in the current local timezone.
This operator can be used to assign the current system date and time to a DATETIME variable.
Use optional datetime qualifiers to specify the precision of the returned value. The possible qualifiers are the same as in a DATETIME data type definition.
If the datetime qualifiers are not specified after the CURRENT keyword, the precision defaults to YEAR TO FRACTION(3) precision.
MAIN DISPLAY CURRENT YEAR TO FRACTION(4) DISPLAY CURRENT HOUR TO SECOND DISPLAY CURRENT END MAIN