0
I am testing a code, to show the difference of date and current time with the variable in minutes
<?php 
    $phpdate = strtotime( $data );
    $mysqldate = date( 'd-m-Y H:i:s', $phpdate );
    $data1 = strtotime($mysqldate);
    $data2 = strtotime("now");
    $data3 = $data1 - $data2;
    echo "<br>".$data3;
?>
With strtotime return in seconds, how do I turn $data3 only in minutes?
Would not be
$minutos = $data3/60?– edson alves
I found a link that can help you. https://answall.com/questions/176643/converter-formato-hora-em-seconds
– Ricardo Lucas