note 70725 rejected from function.mktime by betz
| From: | betz@php.net | Date: | Wed, 25 Oct 2006 15:25:03 +0000 |
| Subject: | note 70725 rejected from function.mktime by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-119106@lists.php.net to get a copy of this message | ||
Note Submitter: morten at jakofeld dot dk
----
How many days in october???
I have tried calculating the number of days between to give dates but sometimes I get an odd number.
So I tried calculating some simple ones and still had the error.
My question is really not how many days there are in october ;)
But how do I convince PHP about my opinion on that matter....
try this one:
$october_start = mktime(00,00,00,10,1,2006);
$october_end = mktime(23,59,59,10,31,2006);
$october_seconds = $october_end - $october_start;
$october_days = $october_seconds/(24*60*60);
echo $october_days;