MySQL Date/Time timediff() FunctionThe timediff() is a MySQL date/time function. It is used to get the difference from given two time/datetime. SyntaxParameter:time1, time2: time values to get the difference Returns:This function returns the difference between two time/datetime values. Example 1Output: ![]() Example 2Output: ![]()
Next TopicMySQL datetime
|