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