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

 ID:                 52514
 Comment by:         giorgio dot liscio at email dot it
 Reported by:        giorgio dot liscio at email dot it
 Summary:            microseconds are missing in DateTime class
 Status:             Assigned
 Type:               Bug
 Package:            Date/time related
 Operating System:   all? xp x64
 PHP Version:        5.3.3
 Assigned To:        derick
 Block user comment: N

 New Comment:

hi, thank you for accepting this bug



microseconds must be stored for example in:



"now"

"+5 weeks"

"-7 weekdays"

"ago"



in practice, when the date-time is relative to "now"



in plus must works (and apparently works) full microseconds support when
datetime is instantiated through createFromFormat()



see http://bugs.php.net/bug.php?id=52519 too



thank you for creating this library, love oop dates :)


Previous Comments:
------------------------------------------------------------------------
[2010-08-02 13:44:52] giorgio dot liscio at email dot it

Description:
------------
hi



i expected to dump microseconds too when i use



new DateTime("now");

new DateTime(date('Y-m-d H:i:s.283020,time()));



but apparently they are not stored at all in datetime objects



echo date('Y-m-d H:i:s.u',microtime(true));



or in classical php functions



thank you



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52514&edit=1

Reply via email to