Skip to main content
Version: Stable-3.1

minute

Description

Returns the minute for a given date. The return value ranges from 0 to 59.

The date parameter must be of the DATE or DATETIME type.

Syntax

INT MINUTE(DATETIME|DATE date)

Examples

MySQL > select minute('2018-12-31 23:59:59');
+-----------------------------+
|minute('2018-12-31 23:59:59')|
+-----------------------------+
| 59 |
+-----------------------------+

keyword

MINUTE