#42921 [Ver->Csd]: date('u') doesn't work

From: Date: Sat, 13 Oct 2007 13:06:52 +0000
Subject: #42921 [Ver->Csd]: date('u') doesn't work
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-100@lists.php.net to get a copy of this message
ID: 42921 Updated by: bjori@php.net Reported By: root at mantoru dot de -Status: Verified +Status: Closed Bug Type: Documentation problem Operating System: Windows XP PHP Version: 5.2.4 -Assigned To: +Assigned To: bjori New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2007-10-11 13:29:33] root at mantoru dot de Just out of interest... if the way date() works doesn't support milliseconds, why does 'u' exist in the first place? ------------------------------------------------------------------------ [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

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