CURRENT

The CURRENT operator returns the current date and time according to the qualifier.

Syntax

CURRENT qual1 TO qual2 [(scale)]
  1. qual1, qual2 and scale define the date time qualifier.

Usage

The CURRENT operator is used to assign the current system date and time to a DATETIME variable.

The possible qualifiers are the same as in a DATETIME data type definition.

MAIN
  DISPLAY CURRENT YEAR TO FRACTION(4)
  DISPLAY CURRENT HOUR TO SECOND
END MAIN