List of expression elements / Date and time operators |
The EXTEND() operator adjusts a date time value according to the qualifier.
EXTEND ( dt-expr, qual1 TO qual2 [(scale)])
The EXTEND() operator is used to convert a date time expression to a DATETIME value with a different precision.
The default qualifier is YEAR TO DAY.
The possible qualifiers are the same as in a DATETIME data type definition.
The expressions passed as first parameter must be a valid datetime value. If it is a character string, it must consist of valid and unambiguous time-unit values and separators, but with these restrictions:
MAIN DISPLAY EXTEND ( TODAY, YEAR TO FRACTION(4) ) END MAIN