The start time and date is: 2007-12-31 23:59:59 and the end time is: 2018-03-06 17:44:09, I want to calculate the time difference between these dates. I thought that the time was enough, but no, you have to calculate the days too
select TIMESTAMPDIFF(MINUTE, notificacion_update, now()) as horas from notificacion;
This doesn't work, it only calculates minutes between 2 different times.
Original StackOverflow answer