Question : last seen php
Answered by : uwase-nadjati
echo round(((( time() - strtotime("2021-08-01 21:57:50") )/60)/60)/24).' day(s) ago';
Source : https://stackoverflow.com/questions/1416697/converting-timestamp-to-time-ago-in-php-e-g-1-day-ago-2-days-ago | Last Update : Sat, 17 Sep 22