Answers for "get the diff of 2 time with am pm 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