mariadb diff datetime code example
Example: mariadb hours between two dates
SELECT
order_logs.order_logs_created,
TIMESTAMPDIFF(HOUR,
order_logs.order_logs_created,
NOW())
FROM
order_logs
SELECT
order_logs.order_logs_created,
TIMESTAMPDIFF(HOUR,
order_logs.order_logs_created,
NOW())
FROM
order_logs