DATEADD_UDF (TIMESTAMP, FLOAT)

Definition

This user-defined function (UDF) is used in cases when there is an addition between a timestamp and a float number.

PUBLIC.DATEADD_UDF(FIRST_PARAM TIMESTAMP, SECOND_PARAM FLOAT)

Parameters

FIRST_PARAM TIMESTAMP

The timestamp number that is going to be added with the second float parameter.

SECOND_PARAM FLOAT

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(current_timestamp, 1);

Output:

2024-01-26 13:22:49.354

Last updated