I want to find the time difference between mysql timestamp and time in php.
$timesince = strtotime("now") - $row['DateTime'];
This is my attempt to do this, but it does not work.
In addition, ideally, I would like the result to be in a good format: 34 minutes ago, 2 hours 5 minutes ago 4, days 2 minutes ago, etc.
Really, really appreciate any help with this.
source share