|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #74668 Add DateTime::createFromImmutable() method
Submitted: 2017-05-28 20:55 UTC Modified: 2017-10-25 02:03 UTC
From: bugs dot php dot net at majkl578 dot cz Assigned:
Status: Open Package: Date/time related
PHP Version: Next Minor Version 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.
Block user comment
Status: Assign to:
Bug Type:
From: bugs dot php dot net at majkl578 dot cz
New email:
PHP Version: OS:


 [2017-05-28 20:55 UTC] bugs dot php dot net at majkl578 dot cz
Just like there is DateTimeImmutable::createFromMutable(), there should also be a DateTime::createFromImmutable() for consistency & interoperability.

Test script:
DateTime::createFromImmutable(new DateTimeImmutable);


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-25 02:03 UTC]
-Package: date_time +Package: Date/time related
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC