Re: Diff between 2 date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I use CalcDateDiff.php class and it works pretty good!
Why use classes for such a simple calculation? It's the matter of 2 rows of code


$dif_sec=mktime(0,0,0,10,6,2006)-mktime(0,0,0,10,5,2006);
echo("diff is ".($dif_sec/(24*60*60))." days");

OKi98

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux