snowflake.snowpark.functions.datediff¶
- snowflake.snowpark.functions.datediff(part: str, col1: ColumnOrName, col2: ColumnOrName) Column[source]¶
Calculates the difference between two date, time, or timestamp columns based on the date or time part requested.
Example:
- Parameters:
part – The time part to use for calculating the difference
col1 – The first timestamp column or minuend in the datediff
col2 – The second timestamp column or the subtrahend in the datediff