Example
Return current time:
SELECT CURRENT_TIME();
Definition and Usage
The CURRENT_TIME() function returns the current time.
Note: The time is returned as “HH-MM-SS” (string) or as HHMMSS.uuuuuu (numeric).
Syntax
CURRENT_TIME()
Technical Details
Works in: | From MySQL 4.0 |
---|
More Examples
Example
Return current time + 1:
SELECT CURRENT_TIME() + 1;