HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Create and return a time value based on an hour, minute, and second value
The MAKETIME() function creates and returns a time based on an hour, minute, and second value.
MAKETIME(hour, minute, second)
Parameter | Description |
---|---|
hour | Required. The hour value |
minute | Required. The minute value |
second | Required. The seconds value |
Works in: | From MySQL 4.0 |
---|
Create and return a time value based on an hour, minute, and second value:
SELECT MAKETIME(16,
1, 0);
Create and return a time value based on an hour, minute, and second value:
SELECT MAKETIME(21,
59, 59);
Create and return a time value based on an hour, minute, and second value:
SELECT MAKETIME(838,
59, 59);