minute
function
Applies to: Databricks SQL Databricks Runtime
Returns the minute component of the timestamp in expr
. This function is a synonym for extract(MINUTES FROM expr)
.
Syntax
minute(expr)
Arguments
expr
: An TIMESTAMP expression or a STRING of a valid timestamp format.
Returns
An INTEGER.
Examples
> SELECT minute('2009-07-30 12:58:59');
58