HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Extract the time part from a time expression
The TIME() function extracts the time part from a given time/datetime.
TIME(expression)
Parameter | Description |
---|---|
expression | Required. The time/datetime to extract the time from |
Works in: | From MySQL 4.0 |
---|
Extract the time part from the datetime expression:
SELECT TIME("2017-08-15 19:30:10");
Extract the time part from the datetime expression:
SELECT TIME("2017-08-15 19:30:10.000001");
Extract the time part from NULL:
SELECT TIME(NULL);