ID EN
Date and Time Functions

MAKETIME(hour,minute,second)

MySQL 8.4

Returns a time value calculated from the hour, minute, and second arguments. Returns NULL if any of its arguments are NULL.

Syntax

MYSQL
SELECT MAKETIME(12,15,30);
'12:15:30'

Examples

Example

The second argument can have a fractional part.

MYSQL
SELECT MAKETIME(12,15,30);
'12:15:30'