php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70036 DateTime::createFromFormat/date_create_from_format return value not "formatted"
Submitted: 2015-07-09 18:14 UTC Modified: 2016-10-05 17:02 UTC
From: chealer at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chealer at gmail dot com
New email:
PHP Version: OS:

 

 [2015-07-09 18:14 UTC] chealer at gmail dot com
Description:
------------
date_create_from_format() returns a DateTime object. That object is not "formatted" in any way, yet the functions's description reads:
Returns new DateTime object formatted according to the specified format

Clearly, what the author meant was:
Returns a new DateTime object representing the date and time specified by the specified string, which was formatted in the specified format
---
From manual page: http://www.php.net/datetime.createfromformat
---



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-05 15:00 UTC] cmb@php.net
-Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: Date/time related -Assigned To: +Assigned To: cmb
 [2016-10-05 17:02 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=340326
Log: Fix #70036: DateTime::createFromFormat/date_create_from_format return value not "formatted"
 [2016-10-05 17:02 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2016-10-05 17:02 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=dd3d3bc95cc0c36df4e2e74ec43e131505ca4415
Log: Fix #70036: DateTime::createFromFormat/date_create_from_format return value not "formatted"
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 01 19:03:58 2023 UTC