top of page
128
MySQL 8.0
CURTIME
Syntax:
CURTIME([fsp])
Returns the current time as a value in 'hh:mm:ss' or hhmmss format,
depending on whether the function is used in string or numeric context.
The value is expressed in the session time zone.
If the fsp argument is given to specify a fractional seconds precision
from 0 to 6, the return value includes a fractional seconds part of
that many digits.
mysql> SELECT CURTIME();
-> '23:50:26'
mysql> SELECT CURTIME() + 0;
-> 235026.000000
bottom of page