#39416 [Opn->Asn]: Milliseconds in date()
| From: | derick@php.net | Date: | Wed, 08 Nov 2006 20:52:52 +0000 |
| Subject: | #39416 [Opn->Asn]: Milliseconds in date() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104656@lists.php.net to get a copy of this message | ||
ID: 39416
Updated by: derick@php.net
Reported By: pascal at tweakers dot net
-Status: Open
+Status: Assigned
Bug Type: Feature/Change Request
Operating System: Fedora 4
PHP Version: 5.2.0
-Assigned To:
+Assigned To: derick
New Comment:
This can not work with the standard date() function, as the unix
timestamps it uses are integers and not capable of representing
microseconds. The new DateTime class does support this internally, and
for date_format() and DateTime::format() we could support this.
Previous Comments:
------------------------------------------------------------------------
[2006-11-07 19:43:24] pascal at tweakers dot net
Description:
------------
I'm missing the option for milliseconds in the date()-function and
others. Especially while generating unique identifiers for files it's
very handy. Is it possible to integrate this option to the
date()-method?
Expected result:
----------------
2006-11-07 20:24:40:992 or someting like that?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39416&edit=1