MINUTE()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Returns the minutes for a time.
USAGE
MINUTE(timestamp)
Argument Name | Description |
---|---|
| The |
DETAILS
MINUTE()
is a date-time function that returns the minutes for a time or datetime expression.
The return value is a number in the range 0
to 59
.
A NULL
is returned if the argument is NULL
.
EXAMPLES
SELECT MINUTE('2020-01-03 10:59:01'), MINUTE('10:00:01');
+-------------------------------+--------------------+
| MINUTE('2020-01-03 10:59:01') | MINUTE('10:00:01') |
+-------------------------------+--------------------+
| 59 | 0 |
+-------------------------------+--------------------+