|  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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 13 03:02:22 2024 UTC