Re: Diff between 2 date
| From: | OKi98 | Date: | Fri, 06 Oct 2006 15:06:11 +0000 |
| Subject: | Re: Diff between 2 date | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42498@lists.php.net to get a copy of this message | ||
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