DATEADD_UDF (TIMESTAMP, FLOAT)

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

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