SECONDS_DIFF (Lakehouse v2)
Returns the number of seconds between two datetimes.
Analyze Syntax
Section titled “Analyze Syntax”func.seconds_diff(<end>, <start>)Analyze Examples
Section titled “Analyze Examples”func.seconds_diff('2024-01-01 00:01:30', '2024-01-01 00:00:00')
┌────┐│ 90 │└────┘SQL Syntax
Section titled “SQL Syntax”SECONDS_DIFF(<end>, <start>)SQL Examples
Section titled “SQL Examples”SELECT SECONDS_DIFF('2024-01-01 00:01:30', '2024-01-01 00:00:00');
┌────┐│ 90 │└────┘