Hi, How can I get the difference of two Timestamps in minute or seconds ?
Thank you ...
Try:
$seconds = $t1->timestamp - $t2->timestamp; $minutes = $seconds / 60;
Edit: My bad I see timestamp is protected. Edit2: Try:
$seconds = intval($t1->format('U')) - intval($t2->format('U')); $minutes = $seconds / 60;
Thanks you