#39416 [Asn->Csd]: Milliseconds in date()
| From: | derick@php.net | Date: | Fri, 13 Apr 2007 14:10:54 +0000 |
| Subject: | #39416 [Asn->Csd]: Milliseconds in date() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111447@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: Assigned
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Fedora 4
PHP Version: 5.2.0
Assigned To: derick
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-11-08 20:52:52] derick@php.net
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.
------------------------------------------------------------------------
[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