Home » MySQL CURRENT_TIME() Function

MySQL CURRENT_TIME() Function

by Online Tutorials Library

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

You may also like