Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
TIME_ FORMAT
On this page
The TIME_ function converts the input time object to a string according to the specified format.
TIME_FORMAT (timeobj, format)Arguments
-
timeobj: A valid time, date, datetime, or parsable date string -
format: A string containing format symbols.Only format symbols for the hour, minute, second, and microsecond parts are valid.
Refer to DATE_
Return Type
String
Examples
SELECT TIME_FORMAT('12:05:47', '%s, %i, %h');
+---------------------------------------+
| TIME_FORMAT('12:05:47', '%s, %i, %h') |
+---------------------------------------+
| 47, 05, 12 |
+---------------------------------------+Last modified: