TO_MINUTE (Lakehouse v1)
Converts a date with time (timestamp/datetime) to a UInt8 number containing the number of the minute of the hour (0-59).
Analyze Syntax
Section titled “Analyze Syntax”func.to_minute(<expr>)Analyze Examples
Section titled “Analyze Examples”func.to_minute('2023-11-12 09:38:18.165575')
┌────────────────────────────────────────────────────┐│ func.to_minute('2023-11-12 09:38:18.165575') ││ UInt8 │├────────────────────────────────────────────────────┤│ 38 │└────────────────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”TO_MINUTE(<expr>)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<expr> | timestamp |
Return Type
Section titled “Return Type”TINYINT
SQL Examples
Section titled “SQL Examples”SELECT to_minute('2023-11-12 09:38:18.165575')
┌─────────────────────────────────────────┐│ to_minute('2023-11-12 09:38:18.165575') ││ UInt8 │├─────────────────────────────────────────┤│ 38 │└─────────────────────────────────────────┘