#43595 [Opn->Csd]: Be able to add a UNIX timestamp to constructor of DateTime
| From: | derick@php.net | Date: | Fri, 14 Dec 2007 22:42:38 +0000 |
| Subject: | #43595 [Opn->Csd]: Be able to add a UNIX timestamp to constructor of DateTime | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120662@lists.php.net to get a copy of this message | ||
ID: 43595
Updated by: derick@php.net
Reported By: mattis at xait dot no
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Windows XP SP2
PHP Version: 5.2.5
New Comment:
Fixed by Scott in CVS, but not as a factory method, but rather as the
normal method setTimestamp().
Previous Comments:
------------------------------------------------------------------------
[2007-12-14 10:47:54] mattis at xait dot no
Description:
------------
It would be nice if DateTime could accept something like:
$dt = new DateTime(time());
or maybe a method like so:
DateTime::createFromTimestamp(time());
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43595&edit=1