Home >Backend Development >PHP Tutorial >date_diff calculates the interval between 'operation time' and 'current time'
There are many similar comments on many blogs: xx minutes xx seconds, the time to display comments is long, today I made one using PHP's date_diff.
can be $interval = date_diff($datetime1, $datetime2) ;
$psdate=null;
|