DATEADD_UDF (FLOAT, TIMESTAMP)
Definition
This user-defined function (UDF) is used in cases when there is an addition between a float
number and a timestamp
.
PUBLIC.DATEADD_UDF(FIRST_PARAM FLOAT, SECOND_PARAM TIMESTAMP)
Parameters
FIRST_PARAM
FLOAT
The timestamp number that is going to be added with the second float parameter.
SECOND_PARAM
DATE
The float number to be added with the timestamp in the first parameter.
Returns
Returns a timestamp with the addition between the timestamp and the float number specified.
Usage example
Input:
SELECT DATEADD_UDF(1, current_timestamp);
Output:
2024-01-30 18:47:16.988
Last updated