How to get time difference in minutes in PHP

Subtract the past most one from the future most one and divide by 60.

Times are done in Unix format so they’re just a big number showing the number of seconds from January 1, 1970, 00:00:00 GMT

Leave a Comment