MINUTE() extracts the minute component from a date or timestamp value. This function is useful for time-based calculations, filtering, and reporting where you need to work with the minute portion of a datetime value.
MINUTE(date)
MINUTE() returns an integer between 0 and 59
MINUTE(DATE(2007, 07, 04, 12, 30, 22)) = 30 (30 minutes past the hour)
MINUTE(DATE(2007, 12, 25, 8, 10, 20)) = 10 (10 minutes past the hour)
MINUTE(DATE(2025, 1, 1, 0, 0, 0)) = 0 (start of hour)
MINUTE(DATE(2025, 1, 1, 23, 59, 59)) = 59 (end of hour)
MINUTE(CURDATE()) = 45 (if run at 45 minutes past the hour)
MINUTE(NULL) = NULL (NULL input)