MINUTE
Extracts the minute number (from 0 to 59) for a given time or timestamp.
Syntax
EXTRACT(MINUTE FROM date_timestamp_expression string) → bigint
timestamp_expression: A
TIME
,TIMESTAMP
, orDATE
expression.
Examples
MINUTE example using a timestamp.
MINUTE example using a time.
MINUTE example using the CAST function.
Usage Notes
This function uses the EXTRACT
function. When using the CAST
function, timestamps containing milliseconds are not allowed.
Last updated