#42921 [Opn->Bgs]: date('u') doesn't work

From: Date: Wed, 10 Oct 2007 21:06:48 +0000
Subject: #42921 [Opn->Bgs]: date('u') doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118371@lists.php.net to get a copy of this message
 ID:               42921
 Updated by:       derick@php.net
 Reported By:      root at mantoru dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Windows XP
 PHP Version:      5.2.4
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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


Thread (2 messages)

« previous php.bugs (#118371) next »