MySQL TIME_FORMAT()
MySQL 날짜함수, 시간함수
TIME_FORMAT()
-
TIME_FORMAT(time format)
의 형태
This is used like the DATE_FORMAT() function, but the format string may contain format specifiers only for hours, minute, seconds, and microseconds. Other specifiers produce a NULL value or 0.
It the time value contains an hour part that is greater than 23, the %H and %k hour format specifiers produce a value larger than the usual range of 0..23. The other hour format specifiers produce the hour value modulo 12.
mysql> SELECT TIME_FORMAT('100:00:00', '%h %k %h %I %l');
+--------------------------------------------+
| TIME_FORMAT('100:00:00', '%h %k %h %I %l') |
+--------------------------------------------+
| 04 100 04 04 4 |
+--------------------------------------------+
1 row in set (0.00 sec)