TIMEDIFF(t,s) is a
time function that calculates the time value between a start and end time.t and s:
time_or_timestamp_expression
Result of the TIMEDIFF(t,s) function | |
Positive difference between t and s |
Time value |
t or s are timestamp values for alphanumeric values that match the current timestamp format. |
The dates contained in the timestamp value are used to calculate TIMEDIFF(t,s). |
Difference of more than 9999 hours |
Number of hours modulo 10000 |
t or s is NULL value |
NULL value |