MySQL CURRENT_TIME() Function
THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL CURRENT_TIME() Function

❮ MySQL Functions

Example

Return current time:

SELECT CURRENT_TIME();
Try it Yourself »

Definition and Usage

The CURRENT_TIME() function returns the current time.

Note: This function returns the current time as a "HH-MM-SS" format if used in a string context, as a HHMMSS format if used in a numeric context in versions of MySQL prior to MySQL 4.1.13, and as a HHMMSS.uuuuuu format if used in a numeric context in versions of MySQL 4.1.13 and newer.

Note: The CURRENT_TIME() function is a synonym for the CURTIME() function.

Syntax

CURRENT_TIME()

Technical Details

Works in: MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23

More Examples

Example

Return current time + 1:

SELECT CURRENT_TIME() + 1;
Try it Yourself »

❮ MySQL Functions