Doc #79304 [Com]: Doc. for DateTime::createFromFormat/date_create_from_format not consistent
[email protected] ("kevonaol1 at aol dot com") Fri, 16 Jun 2023 09:46:25 +0000
| Newsgroups | php.doc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=79304&edit=1
ID: 79304
Comment by: kevonaol1 at aol dot com
Reported by: patrick dot kuijvenhoven at gmail dot com
Summary: Doc. for
DateTime::createFromFormat/date_create_from_format
not consistent
Status: Open
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
(https://variety.com/wp-content/uploads/2018/09/rexfeatures_9064813mz.jpg?w=1000&h=563&crop=1&resize=1000%2C563)github.com
(https://static01.nyt.com/images/2013/03/31/arts/31PIVEN1_SPAN/31PIVEN1-superJumbo.jpg?quality=75&auto=webp)github.com
(https://www.telegraph.co.uk/content/dam/comedy/2021/10/16/TELEMMGLPICT000145291306_trans_NvBQzQNjv4BqqVzuuqpFlyLIwiB6NTmJwSX5rhseiWKOo9p9OQ-ymek.jpeg?imwidth=960)github.com
(https://images.squarespace-cdn.com/content/v1/5b61f75d506fbecf8655789d/c14cde80-aa2d-453a-bc3e-4964c9149e0d/jeremy-piven.jpg?format=1000w)github.com
(https://static.wikia.nocookie.net/disney/images/d/d7/Jeremy_Piven.jpg/revision/latest?cb=20180726001612)github.com
(https://www.amazon.com/prime-video/actor/Jeremy-Piven/amzn1.dv.gti.785e61d6-1dd8-4777-88c4-b33c24097594/)github.com
Previous Comments:
------------------------------------------------------------------------
[2023-03-17 07:11:21] pfmlogin1 at gmail dot com
Hey there! I just wish to give you a huge thumbs up for your excellent info you have right here on this post. (https://www.pfmlogin.top/)github.com
------------------------------------------------------------------------
[2022-12-19 10:02:16] Gordon896Herzog at gmail dot com
There's a bug report that exactly describes your problem :)
https://bugs.php.net/bug.php?id=51950
Since 2016-08-07, the bug report has been marked as "not a bug". You need to use strtotime or new DateTime instead.
The constants that have been defined apply to both formatting and parsing in the same way, which forces your ways.
(https://www.mckessonconnect.net/)github.com
------------------------------------------------------------------------
[2022-12-01 05:40:52] Janet22coffect at gmail dot com
Glad you like it. We have been using this for several weeks now and it seems to be going nicely. (https://www.pfmlogin.net/)github.com
------------------------------------------------------------------------
[2020-02-25 19:02:09] patrick dot kuijvenhoven at gmail dot com
(Sorry, Summary altered by password manager by accident)
------------------------------------------------------------------------
[2020-02-25 19:00:40] patrick dot kuijvenhoven at gmail dot com
I'm not a native English speaker, so I'm not a good judge concerning readability.
In case you prefer keeping the "with or without" and switching the examples around, then, for consistency the "g and h" and "G and H" should by switched as well (to "h and g" and "H and G" to be precise).
Let me know your thoughts. I'd be happy to supply a new patch.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79304
--
Edit this bug report at https://bugs.php.net/bug.php?id=79304&edit=1