note 79823 added to function.date

From: Date: Fri, 14 Dec 2007 00:56:09 +0000
Subject: note 79823 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-133445@lists.php.net to get a copy of this message
For JasonLFunk I did some testing on the occurrence for a given date within the month (i.e 1st Monday, 2nd Wednesday, 3rd Friday, etc.). where $dDate is a getdate() array intval(($dDate['mday']-1)/7)+1 Returns an integer representing the week for a given date. I tested on a complete calendar month and it seems to work well. I then convert to a string and compare to a string list of values to see if it is in the list. If it is - it qualifies. So, my list of values might be '2,4' representing every 2nd and 4th occurrence. ---- Server IP: 209.41.74.194 Probable Submitter: 70.226.141.41 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/79823 Del: integrated -- https://master.php.net/note/delete/79823/integrated Del: useless -- https://master.php.net/note/delete/79823/useless Del: bad code -- https://master.php.net/note/delete/79823/bad+code Del: spam -- https://master.php.net/note/delete/79823/spam Del: non-english -- https://master.php.net/note/delete/79823/non-english Del: in docs -- https://master.php.net/note/delete/79823/in+docs Del: other reasons-- https://master.php.net/note/delete/79823 Reject -- https://master.php.net/note/reject/79823 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#133445) next »