Answers for "compare 2 time periods in php"

PHP
0

difference of two dates in seconds php

$timeFirst  = strtotime('2011-05-12 18:20:20');
$timeSecond = strtotime('2011-05-13 18:20:20');
$differenceInSeconds = $timeSecond - $timeFirst;
Posted by: Guest on March-15-2021

Browse Popular Code Answers by Language