Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #difference #dates #seconds #php
ADD COMMENT
Topic
Name
7+7 =