Bug #62546 [Opn->Nab]: Invalid microtime parsing
| From: | aharvey@php.net | Date: | Fri, 20 Jul 2012 02:34:29 +0000 |
| Subject: | Bug #62546 [Opn->Nab]: Invalid microtime parsing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172096@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62546&edit=1
ID: 62546
Updated by: aharvey@php.net
Reported by: mingalevme at gmail dot com
Summary: Invalid microtime parsing
-Status: Open
+Status: Not a bug
Type: Bug
Package: Date/time related
Operating System: Ubuntu 12.04
PHP Version: 5.4.4
Block user comment: N
Private report: N
New Comment:
The fractional component is stored internally as a floating-point value, and is hence subject to the
usual imprecision associated with floats.
Previous Comments:
------------------------------------------------------------------------
[2012-07-13 10:32:37] mingalevme at gmail dot com
Description:
------------
See sample below
Test script:
---------------
$date = new Datetime('2012-07-11 18:46:07.517569');
echo $date->format('u');
Expected result:
----------------
517569
Actual result:
--------------
517568
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62546&edit=1