#44286 [NEW]: date('u'): milli or microseconds?
| From: | carsten at bitbybit dot dk | Date: | Thu, 28 Feb 2008 20:21:26 +0000 |
| Subject: | #44286 [NEW]: date('u'): milli or microseconds? | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-557@lists.php.net to get a copy of this message | ||
From: carsten at bitbybit dot dk
Operating system: any
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: date('u'): milli or microseconds?
Description:
------------
According to current documentation, date('u') returns "Milliseconds (added
in PHP 5.2.2) | Example: 54321".
I suspect that what is meant is microseconds (10^-6 s), not milliseconds
(10^-3 s). Otherwise, the example value doesn't make sense.
Reproduce code:
---------------
shell> php -r 'echo
shell> date("u")."\n".date("u")."\n";'
Expected result:
----------------
microseconds, not milliseconds
Actual result:
--------------
microseconds (apparently)
--
Edit bug report at http://bugs.php.net/?id=44286&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44286&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44286&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44286&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44286&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44286&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44286&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44286&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44286&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44286&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44286&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44286&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44286&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44286&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44286&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44286&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44286&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44286&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44286&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44286&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44286&r=mysqlcfg