This MySQL function returns the current system time in hh:mm:ss format.
Below is the syntax for this command. Text within square brackets (i.e, [ and ] ) are optional. Choices are separated by bars (i.e, | ). Ellipses preceded by a comma indicates a repeating pattern. Ellipses before or after syntax are used to highlight a relevant except from the larger syntax. Text displayed in italic letters represent text that should be replaced with the specific names related to the database (e.g., column with the name of the column).
This function returns the current system time in hh:mm:ss format. It will return the time in an hhmmss format, as a numeric if it's used as part of a numeric calculation (see example). This is an alias for CURRENT_TIME().
SELECT CURTIME() AS Now, CURTIME() + 10000 AS 'Hour Later'; +----------+------------+ | Now | Hour Later | +----------+------------+ | 16:35:43 | 163543 | +----------+------------+
By adding 10000 to the current time, this statement increases the hour by 1 and the minutes and seconds by zero each. This is in keeping with the yyyymmddhhmmss format previously mentioned.