Edit report at https://bugs.php.net/bug.php?id=62546&edit=1

 ID:                 62546
 Updated by:         ahar...@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

Reply via email to