Flipkart

Monday, July 20, 2009

Differance Between Two Dates

$now1 = strtotime(date("Y-m-d h:i:s"));
$now2 = strtotime(date("Y-m-d h:i:s"));
$seconds = $now1-$now2;
$minutes = $now1-$now2/60;

No comments:

Post a Comment