note 114462 added to function.strtotime
| From: | Anonymous | Date: | Sun, 23 Feb 2014 15:13:32 +0000 |
| Subject: | note 114462 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198599@lists.php.net to get a copy of this message | ||
Be aware that you cannot rely on this function alone to validate a date, as it will accept insane
dates like the 31st of February.
Also, the '... week' functionality by itself may not do what you expect. If used on a
Sunday, 'next week' will not return a timestamp of the next Monday, but of the Monday
after that. Similarly, a timestamp for the Monday of the current week is returned when
'previous/last week' is used and 'this week' returns a stamp of the Monday of
the next week (i.e. the following day). This is not the 'week starts on Sunday' effect, as
that would mean all the timestamps returned would have to be on a Sunday and none of them are.
----
Server IP: 91.199.167.223
Probable Submitter: 82.217.4.35
----
Manual Page -- http://php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/114462
Del: integrated -- https://master.php.net/note/delete/114462/integrated
Del: useless -- https://master.php.net/note/delete/114462/useless
Del: bad code -- https://master.php.net/note/delete/114462/bad+code
Del: spam -- https://master.php.net/note/delete/114462/spam
Del: non-english -- https://master.php.net/note/delete/114462/non-english
Del: in docs -- https://master.php.net/note/delete/114462/in+docs
Del: other reasons-- https://master.php.net/note/delete/114462
Reject -- https://master.php.net/note/reject/114462
Search -- https://master.php.net/manage/user-notes.php