note 123975 added to dateinterval.createfromdatestring
| From: | Haravikk@php.net | Date: | Sat, 22 Jun 2019 13:57:35 +0000 |
| Subject: | note 123975 added to dateinterval.createfromdatestring | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-211330@lists.php.net to get a copy of this message | ||
Actually Orlando, marcoczen is correct; the letter M is used to specify both months and minutes in
an ISO-8601 duration. To clarify which is which, you must use T to indicate the start of the time
segment of the duration.
So P1M is one month, while PT1M is 1 minute, and P1MT1M is one month and one minute, etc.
I just wanted to clarify that this was not a mistake by marcoczen, though I'm unsure what
relevance the format listing is for this page, when it is not one of the supported formats for
createFromDateString().
----
Server IP: 208.43.231.9
Probable Submitter: 82.199.130.26 (proxied: 82.36.226.183)
----
Manual Page -- http://php.net/manual/en/dateinterval.createfromdatestring.php
Edit -- https://master.php.net/note/edit/123975
Del: integrated -- https://master.php.net/note/delete/123975/integrated
Del: useless -- https://master.php.net/note/delete/123975/useless
Del: bad code -- https://master.php.net/note/delete/123975/bad+code
Del: spam -- https://master.php.net/note/delete/123975/spam
Del: non-english -- https://master.php.net/note/delete/123975/non-english
Del: in docs -- https://master.php.net/note/delete/123975/in+docs
Del: other reasons-- https://master.php.net/note/delete/123975
Reject -- https://master.php.net/note/reject/123975
Search -- https://master.php.net/manage/user-notes.php