#41806 [Opn->Asn]: milliseconds in date function
| From: | sniper@php.net | Date: | Tue, 26 Jun 2007 00:27:40 +0000 |
| Subject: | #41806 [Opn->Asn]: milliseconds in date function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114233@lists.php.net to get a copy of this message | ||
ID: 41806
Updated by: sniper@php.net
Reported By: lordi at msdi dot ca
-Status: Open
+Status: Assigned
Bug Type: Date/time related
Operating System: FreeBSD 6.2-RELEASE
PHP Version: 5.2.3
-Assigned To:
+Assigned To: derick
New Comment:
I think someone forgot to commit the part to the ext/date/lib/ side of
things when adding 'u' format as I can't see anywhere where t->f would
be set to anything but 0..
Previous Comments:
------------------------------------------------------------------------
[2007-06-25 23:53:12] lordi at msdi dot ca
Description:
------------
Hi,
the "u" parameters in the date function should return milliseconds, but
it always returns zeros.
Reproduce code:
---------------
date_default_timezone_set('America/Montreal');
echo date ('H:i:s:u');
Expected result:
----------------
19:50:39:123456
Actual result:
--------------
19:50:39:000000
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41806&edit=1