#49754 [NEW]: date's documentation about 'u' implies it actually works

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

« previous php.doc.bugs (#2863) next »