THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL MINUTE() Function

❮ MySQL Functions

Example

Return the minute part of a datetime value:

SELECT MINUTE("2017-06-20 09:34:00");
Try it Yourself »

Definition and Usage

The MINUTE() function returns the minute part of a time/datetime (from 0 to 59).

Syntax

MINUTE(datetime)

Parameter Values

Parameter Description
datetime Required. The time or datetime extract the minute from

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Return the minute part of a time value: 

SELECT MINUTE("23:59:59");
Try it Yourself »

❮ MySQL Functions