Req #52519 [Asn->Csd]: microseconds in DateInterval are missing

From: Date: Wed, 05 Oct 2016 20:59:57 +0000
Subject: Req #52519 [Asn->Csd]: microseconds in DateInterval are missing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204502@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52519&edit=1 ID: 52519 Updated by: derick@php.net Reported by: giorgio dot liscio at email dot it Summary: microseconds in DateInterval are missing -Status: Assigned +Status: Closed Type: Feature/Change Request Package: Date/time related Operating System: xp x64 all PHP Version: 5.3.3 Assigned To: derick Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. As ISO 8601 does not support fractions for seconds for intervals, this will not be implemented. The original property for DateInterval's microseconds ("f") has been added for PHP 7.1.0RC4. Previous Comments: ------------------------------------------------------------------------ [2016-10-05 20:04:25] derick@php.net For var_dump(), the microseconds are now there - and also used when doing diff() or add(). ------------------------------------------------------------------------ [2010-08-30 17:52:26] derick@php.net ISO 8601 actually allows fractions for seconds (see section 5.3.1.3) ------------------------------------------------------------------------ [2010-08-07 02:52:39] giorgio dot liscio at email dot it sorry, bad link http://bugs.php.net/bug.php?id=52514 ------------------------------------------------------------------------ [2010-08-07 02:51:10] giorgio dot liscio at email dot it hi thank you for accepting this bug since ISO8601 does not specify how to treat microseconds i think the best way to implement this is with seconds treated as floats "P10.342192S" see http://bugs.php.net/bug.php?id=52519 too again, thank you for this library and for your attention on my requests :) ------------------------------------------------------------------------ [2010-08-02 23:06:30] giorgio dot liscio at email dot it Description: ------------ hi, the property $seconds should be float or a $microseconds property is missing in the class DateInterval http://www.php.net/manual/en/class.dateinterval.php thank you ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=52519&edit=1

« previous php.bugs (#204502) next »