minute function (Databricks SQL)

Returns the minute component of the timestamp in expr.

Syntax

minute(expr)

Arguments

  • expr: An TIMESTAMP expression or a STRING of a valid timestamp format.

Returns

An INTEGER.

This function is a synonym for extract(MINUTES FROM expr).

Examples

> SELECT minute('2009-07-30 12:58:59');
 58