Javatpoint Logo
Javatpoint Logo

MySQL CURRENT_TIME() Function

The current_time() is a MySQL date/time function. It is used to get the current time.

Syntax

Parameters

NA

Returns

This function will return the current time. It will return the current time as an 'HH:MM:SS' format if used in a string context. It will return the current time as an HHMMSS format if used in a numeric context.

Example 1

Output:


MySQL CURRENT_TIME() Function

Example 2

Output:


MySQL CURRENT_TIME() Function
Next TopicMySQL date/time





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA