php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49756 date's documentation about 'u' implies it actually works
Submitted: 2009-10-02 19:04 UTC Modified: 2009-10-02 19:45 UTC
From: urkle at outoforder dot cc Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.2.11 OS: CentOS 5
Private report: No CVE-ID: None
 [2009-10-02 19:04 UTC] urkle at outoforder dot cc
Description:
------------
The documentation currently states.

u  	Microseconds (added in PHP 5.2.2)  	Example: 654321

which contradicts the result of bug #41806 http://bugs.php.net/bug.php?id=41806

which states that because date() only accepts an integer and uses time() which only returns an integer the 'u' formatting option will ONLY return 000000.

This severely limits the usefulness of having that 'u' formatting option.

Can the documentation either be updated to reflect that it will ONLY return '000000' OR can the date() be modified to use microtime() when possible and to accept a float so the 'u' format option can be useful.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-02 19:45 UTC] urkle at outoforder dot cc
web form created a duplicate
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 10:00:01 2026 UTC