webCOMAND

TIME()

Return the time part of a timestamp.

Prototype

time TIME(timestamp $timestamp)

Parameters

  • timestamp - A timestamp in "YYYY-MM-DD HH:MM:SS" or "YYYY-MM-DD HH:MM:SS.mmmmmm" format.

Return

The time portion of a timestamp or NULL if there is an error, such as an invalid timestamp.  The time portion may include a decimal followed by microseconds (ie. " 07:45:00.000000").

Example

SELECT OID, TIME(META(LastModified)) AS TimeModified FROM User

See Also

DATE_FORMAT()