php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #47713 Documentation for DateTime-Class should document if arbitary dates are allowed
Submitted: 2009-03-19 06:03 UTC Modified: 2009-11-19 11:39 UTC
From: privat at timohummel dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
 [2009-03-19 06:03 UTC] privat at timohummel dot com
Description:
------------
The DateTime manual page (http://de3.php.net/manual/en/class.datetime.php) should document whether if it is possible to use arbitary dates or not - e.g. Dates which are outside of the general Unix timestamp.

A quick test revealed that $dt = new DateTime("0010-01-01 00:01:00"); does work, but it should be documented, and it should also be documented what the limitations are.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-19 11:39 UTC] vrana@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.


 [2009-11-19 11:39 UTC] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=290981
Log: Supports all dates (bug #47713)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 10 08:00:01 2026 UTC