Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php difference between two dates in seconds

$start = new DateTime('2011-12-31 00:00:00');
$end = new DateTime('2021-01-01 00:00:00');

echo $end->getTimestamp() - $start->getTimestamp(); // output: 284169600
Source by www.designcise.com #
 
PREVIOUS NEXT
Tagged: #php #difference #dates #seconds
ADD COMMENT
Topic
Name
6+2 =