note 105695 added to function.getdate
| From: | nichols at tradingconnections dot com | Date: | Thu, 08 Sep 2011 00:29:41 +0000 |
| Subject: | note 105695 added to function.getdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183019@lists.php.net to get a copy of this message | ||
moshe at unirgy dot com: function getNextWorkDayTime is illustrative and useful, but it needs to
have next year's New Year's Day in the list to guarantee working correctly when called
with the date 12/30 or 12/31. Fortunately mktime is happy with months outside the 1-12 range. Fix is
to add these few characters to the $hdata array:
'13/1'/*nextnewyr*/,
----
Server IP: 69.147.83.197
Probable Submitter: 69.95.179.175
----
Manual Page -- http://www.php.net/manual/en/function.getdate.php
Edit -- https://master.php.net/note/edit/105695
Del: integrated -- https://master.php.net/note/delete/105695/integrated
Del: useless -- https://master.php.net/note/delete/105695/useless
Del: bad code -- https://master.php.net/note/delete/105695/bad+code
Del: spam -- https://master.php.net/note/delete/105695/spam
Del: non-english -- https://master.php.net/note/delete/105695/non-english
Del: in docs -- https://master.php.net/note/delete/105695/in+docs
Del: other reasons-- https://master.php.net/note/delete/105695
Reject -- https://master.php.net/note/reject/105695
Search -- https://master.php.net/manage/user-notes.php