SELECT TIMESTAMPDIFF(MINUTE, '2018-03-20 09:00:00', '2018-03-22 10:00:00') result;
TIMESTAMPDIFF first argument, choose here is the difference between the two is how much MINUTE minutes, the result can be negative.
Example: To determine if the difference between the absolute time is within 10 minutes or less, may be