php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pascal at tweakers dot net
New email:
PHP Version: OS:

 

 [2006-11-07 19:43 UTC] 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?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-08 20:52 UTC] 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.
 [2007-04-13 14:10 UTC] derick@php.net
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.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Sep 20 08:01:27 2019 UTC