I have the following problem
When I subtract 2 (timestamp) dates, it reports back wrong time difference.
Can it be done like this at all?
$datee="2005-02-01 19:54:00"
$datee1="2005-02-01 18:58:00"
$date1=strtotim e($object["datee"]);
$date2= strtotime($obje ct["datee1"]);
$diff=0;
$diff = $date1-$date2;
$days = round($diff/86400, 0);
$hours = round(($diff%86 400)/3600, 0);
$minutes = round(($diff%36 00)/60, 0);
$seconds = $diff%60;
Tnx
When I subtract 2 (timestamp) dates, it reports back wrong time difference.
Can it be done like this at all?
$datee="2005-02-01 19:54:00"
$datee1="2005-02-01 18:58:00"
$date1=strtotim e($object["datee"]);
$date2= strtotime($obje ct["datee1"]);
$diff=0;
$diff = $date1-$date2;
$days = round($diff/86400, 0);
$hours = round(($diff%86 400)/3600, 0);
$minutes = round(($diff%36 00)/60, 0);
$seconds = $diff%60;
Tnx
Comment