Edit report at https://bugs.php.net/bug.php?id=55743&edit=1
ID: 55743 Updated by: bj...@php.net Reported by: bugzilla33 at gmail dot com Summary: date u - Microseconds (added in PHP 5.2.2) -Status: Open +Status: Bogus Type: Bug Package: Date/time related Operating System: All PHP Version: 5.4.0beta1 Block user comment: N Private report: N New Comment: "Note: Since this function only accepts integer timestamps the u format character is only useful when using the date_format() function with user based timestamps created with date_create()." See http://php.net/date Previous Comments: ------------------------------------------------------------------------ [2011-09-20 18:42:46] bugzilla33 at gmail dot com Description: ------------ http://pl.php.net/manual/en/function.date.php http://pl.php.net/manual/en/function.gmdate.php Specification: u - Microseconds (added in PHP 5.2.2) - Example: 654321 u formater do not works because second parameter (called timestamp) is int type u formater will works if second parameter (called timestamp) is double (compatible with current int) Please remove u formater useless or fix specyfication or a better fix it int -> double (second parameter) Test script: --------------- <?=gmdate('u',12.13)?> <?=date('u',12.13)?> Expected result: ---------------- 130000 130000 Actual result: -------------- 000000 000000 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55743&edit=1