|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-06-25 23:53 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 16:00:01 2025 UTC |
The problem still exists (Debian, PHP 5.2.6-1), even though the example wasn't good enough. Reproduce code: --------------------------- echo date('H:i:s.u', microtime(true)); echo microtime(true); Expected: --------------------------- 20:15:44.380000 1297880144.38 Actual: --------------------------- 20:15:44.000000 1297880144.38