84
MySQL Date/Time timediff() Function
The timediff() is a MySQL date/time function. It is used to get the difference from given two time/datetime.
Syntax
Parameter:
time1, time2: time values to get the difference
Returns:
This function returns the difference between two time/datetime values.
Example 1
Output:
Example 2
Output:
Next TopicMySQL datetime