#42921 [Ver]: date('u') doesn't work
| From: | root at mantoru dot de | Date: | Thu, 11 Oct 2007 13:29:34 +0000 |
| Subject: | #42921 [Ver]: date('u') doesn't work | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-91@lists.php.net to get a copy of this message | ||
ID: 42921
User updated by: root at mantoru dot de
Reported By: root at mantoru dot de
Status: Verified
Bug Type: Documentation problem
Operating System: Windows XP
PHP Version: 5.2.4
New Comment:
Just out of interest... if the way date() works doesn't support
milliseconds, why does 'u' exist in the first place?
Previous Comments:
------------------------------------------------------------------------
[2007-10-11 06:20:31] bjori@php.net
Reclassified as documentation problem.
------------------------------------------------------------------------
[2007-10-10 21:06:47] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
date() itself uses a integer based unix timestamp, which does not
support fractions.
------------------------------------------------------------------------
[2007-10-10 20:02:41] root at mantoru dot de
Description:
------------
The u modifier is supposed to convert into microseconds... however,
under Windows (5.2.3) and Linux (5.2.4), I'm always getting '000000'.
Reproduce code:
---------------
<?php
echo date('u');
?>
Expected result:
----------------
6-digit number
Actual result:
--------------
000000
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42921&edit=1