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

From: Date: Wed, 05 Oct 2016 20:04:25 +0000
Subject: Req #52519 [Asn]: microseconds in DateInterval are missing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204498@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
 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:

For var_dump(), the microseconds are now there - and also used when doing diff() or add().


Previous Comments:
------------------------------------------------------------------------
[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


Thread (7 messages)

« previous php.bugs (#204498) next »