MAKETIME() Function in MySQL Last Updated : 27 Nov, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report MAKETIME() function : This function in MySQL is used to create and return a time value based on specified hour, minute, and second value. In MySQL's TIME value limit is 838:59:59. Syntax : MAKETIME(hour, minute, second) Parameters : This method accepts three parameters as given below - hour : Specified hours value minute : Specified minutes value second : Specified seconds value Returns : It returns a time value based on a specified hour, minute, and second value. Example-1 : Getting a time "09:03:12" from specified 9 hours, 3 minutes and 12 seconds. SELECT MAKETIME(9, 3, 12); Output : 09:03:12 Example-2 : Getting a time "838:54:59" from specified 838 hours, 54 minutes and 59 seconds. SELECT MAKETIME(838, 54, 59); Output : 838:54:59 Example-3 : Getting a time "838:59:59" from specified 839 hours, 12 minutes, and 9 seconds. Here hours are taken as 839 which is greater than the hour limit of 838, so returned time is up to its limit of "838:59:59". SELECT MAKETIME(839, 12, 9); Output : 838:59:59 Application : This function is used to create and return a time value based on specified hour, minute, and second value. Comment More infoAdvertise with us Next Article MAKETIME() Function in MySQL K Kanchan_Ray Follow Improve Article Tags : SQL DBMS-SQL mysql Similar Reads MAKEDATE() function in MySQL MAKEDATE() : This function in MySQL is used to create and return a date based on a year and a number of days value. The number of days must be greater than 0 otherwise it returns a NULL value. Syntax : MAKEDATE(year, day) Parameter : This function accepts two parameters as given below as follows. ye 2 min read LOCALTIME() function in MySQL LOCALTIME() function in MySQL is used to check current date and time value. It returns the value of current date and time in âYYYY-MM-DD HH:MM:SSâ format or YYYYMMDDHHMMSS.uuuuuu format, depending on whether the function is used in string or numeric context. Syntax : LOCALTIME OR LOCALTIME() Paramet 2 min read MID() function in MySQL MID() : This function in MySQL is used to extract a substring from a given input string. If the starting position is a positive number, then the substring of the given length will be extracted from the starting index. If negative, then the substring of the given length will be extracted from the end 2 min read LEFT() Function in MySQL The LEFT() function in MySQL is used to extract a specified number of characters from the left side of a given string. It uses its second argument to decide, how many characters it should return. Syntax: LEFT (str, len)Parameter: This function accepts two parameters as mentioned above and described 1 min read MONTH() function in MySQL MySQL MONTH() function returns the month from the given date. It returns a month value between 1 and 12 or returns 0 when the month part of the date is 0. It's a useful SQL function for date manipulation and analysis, particularly when dealing with reports or queries that require month-based groupin 3 min read Like