note 27859 deleted from function.mcal-week-of-year by nlopess
| From: | nlopess@php.net | Date: | Fri, 19 Dec 2003 10:40:07 +0000 |
| Subject: | note 27859 deleted from function.mcal-week-of-year by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62223@lists.php.net to get a copy of this message | ||
Note Submitter:
----
In my opinion it should be:
function week_of_year($nDay, $nMonth, $nYear){
$date = getdate(mktime(9, 0, 0, $nMonth, $nDay+1, $nYear)); // 9:00AM at that day
return floor($date["yday"]/7) + 1;
}