note 117515 added to class.dateperiod
| From: | php at karlsruler dot de | Date: | Mon, 22 Jun 2015 12:34:13 +0000 |
| Subject: | note 117515 added to class.dateperiod | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202924@lists.php.net to get a copy of this message | ||
The iterator seems to check the time as well, it excludes the end element if its time is 00:00:00.
So the slightly safer version (to compare it against joshs suggestion) is to use
$date->setTime(23, 59, 59) instead of $date->modify("+1 day").
----
Server IP: 72.52.91.14
Probable Submitter: 79.110.95.2
----
Manual Page -- http://php.net/manual/en/class.dateperiod.php
Edit -- https://master.php.net/note/edit/117515
Del: integrated -- https://master.php.net/note/delete/117515/integrated
Del: useless -- https://master.php.net/note/delete/117515/useless
Del: bad code -- https://master.php.net/note/delete/117515/bad+code
Del: spam -- https://master.php.net/note/delete/117515/spam
Del: non-english -- https://master.php.net/note/delete/117515/non-english
Del: in docs -- https://master.php.net/note/delete/117515/in+docs
Del: other reasons-- https://master.php.net/note/delete/117515
Reject -- https://master.php.net/note/reject/117515
Search -- https://master.php.net/manage/user-notes.php