Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Formats TIME-type values in the specified format.
VARCHAR TIME_FORMAT(TIME time, VARCHAR format)
time
format
%f Microseconds (000000 to 999999) %H Hour (00 to 23) %h Hour (00 to 12) %i Minutes (00 to 59) %p AM or PM %S Seconds (00 to 59) %s Seconds (00 to 59)
mysql> SELECT TIME_FORMAT("19:30:10", "%h %i %s %p"); +----------------------------------------+ | time_format('19:30:10', '%h %i %s %p') | +----------------------------------------+ | 12 00 00 AM | +----------------------------------------+ 1 row in set (0.01 sec)