|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #39416 Milliseconds in date()
Submitted: 2006-11-07 19:43 UTC Modified: 2007-04-13 14:10 UTC
From: pascal at tweakers dot net Assigned: derick (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 5.2.0 OS: Fedora 4
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: pascal at tweakers dot net
New email:
PHP Version: OS:


 [2006-11-07 19:43 UTC] pascal at tweakers dot net
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?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-08 20:52 UTC]
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.
 [2007-04-13 14:10 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Aug 04 17:01:25 2020 UTC