minute() function

Extract the minute from a datetime or time, or the number of minutes from a Interval

Syntax

minute(datetime)
minute(Interval)

Arguments

date - is datetime or time. The date to extract the minute from.
Interval - is Interval. The Interval to return the number of minutes from.

Example

minute('2012-07-22T13:24:57') → 24
minute(tointerval('3 minutes')) → 3
minute(age('2012-07-22T00:20:00','2012-07-22T00:00:00')) → 20
minute(age('2012-01-01','2010-01-01')) → 1051200