DATEDIFF_UDF(TIMESTAMP, NUMBER)
Definition
This user-defined function (UDF) is used to subtract a number
(which is a number of days) from a timestamp
.
Parameters
FIRST_PARAM
TIMESTAMP
The timestamp
that represents the minuend.
SECOND_PARAM
NUMBER
The number of days that represents the subtrahend.
Returns
Returns a timestamp with the difference between the timestamp
and the number
.
Usage example
Input:
Output:
Last updated