SELECT DATEDIFF(); SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP); -- http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_str-to-date -- https://toster.ru/q/39133