Javatpoint Logo
Javatpoint Logo

MySQL Date/Time time() Function

The time() is a MySQL date/time function. It is used to get the time from given time/datetime.

Syntax

Parameter:

Expression: time/datetime to be extracted.

Returns:

This function returns the time from the given time/datetime.

Example 1

Output:


MySQL time() Function

Example 2

Output:


MySQL time() Function
Next TopicMySQL datetime




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA