#49756 [NEW]: date's documentation about 'u' implies it actually works
| From: | urkle at outoforder dot cc | Date: | Fri, 02 Oct 2009 19:04:27 +0000 |
| Subject: | #49756 [NEW]: date's documentation about 'u' implies it actually works | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-2864@lists.php.net to get a copy of this message | ||
From: urkle at outoforder dot cc
Operating system: CentOS 5
PHP version: 5.2.11
PHP Bug Type: Documentation problem
Bug description: date's documentation about 'u' implies it actually works
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.
--
Edit bug report at http://bugs.php.net/?id=49756&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49756&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49756&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49756&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49756&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49756&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49756&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49756&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49756&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49756&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49756&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49756&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49756&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49756&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49756&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49756&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49756&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49756&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49756&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49756&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49756&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49756&r=mysqlcfg