note 114462 deleted from function.strtotime by crell
| From: | crell@php.net | Date: | Thu, 30 Jun 2022 20:40:44 +0000 |
| Subject: | note 114462 deleted from function.strtotime by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218808@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
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.