TO_MINUTES (Lakehouse v1)
Converts a specified number of minutes into an Interval type.
- Accepts positive integers, zero, and negative integers as input.
Analyze Syntax
Section titled “Analyze Syntax”func.to_minutes(<minutes>)Analyze Examples
Section titled “Analyze Examples”func.to_minutes(2)┌──────────────────────────────────────────────────────┐│ func.to_minutes(2) │├──────────────────────────────────────────────────────┤│ 0:02:00 │└──────────────────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”TO_MINUTES(<minutes>)Return Type
Section titled “Return Type”Interval (in the format hh:mm:ss).
SQL Examples
Section titled “SQL Examples”SELECT TO_MINUTES(2), TO_MINUTES(0), TO_MINUTES((- 2));
┌─────────────────────────────────────────────────┐│ to_minutes(2) │ to_minutes(0) │ to_minutes(- 2) │├───────────────┼───────────────┼─────────────────┤│ 0:02:00 │ 00:00:00 │ -0:02:00 │└─────────────────────────────────────────────────┘