TIME(expr) extracts the time part of the time or datetime expression expr and returns it as a string. : TIME « Date Time Functions « MySQL Tutorial






mysql>
mysql> SELECT TIME('2003-12-31 01:02:03');
+-----------------------------+
| TIME('2003-12-31 01:02:03') |
+-----------------------------+
| 01:02:03                    |
+-----------------------------+
1 row in set (0.00 sec)








14.43.TIME
14.43.1.TIME(expr) extracts the time part of the time or datetime expression expr and returns it as a string.
14.43.2.SELECT TIME('2003-12-31 01:02:03.000123');