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
MySQL Functions : Return the difference between two time expressions
The TIMEDIFF() function returns the difference between two time/datetime expressions.
TIMEDIFF(time1, time2)
Parameter | Description |
---|---|
time1 | Required. A time value |
time2 | Required. Another time value |
Works in: | From MySQL 4.0 |
---|
Return the difference between two datetime expressions:
SELECT TIMEDIFF("2017-06-25 13:10:11", "2017-06-15 13:10:10");