|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-03-30 13:14 UTC] derick@php.net
-Assigned To:
+Assigned To: derick
[2022-05-20 14:08 UTC] derick@php.net
-Status: Assigned
+Status: Closed
[2022-05-20 14:08 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 00:00:01 2025 UTC |
Description: ------------ "If format does not contain the character ! then portions of the generated time which are not specified in format will be set to the current system time. " Given that all datetime methods now include microseconds, DateTime::createFromFormat should do this as well Test script: --------------- var_dump(DateTime::createFromFormat('Y-m-d', '1980-01-01')->format('H:i:s.u')); Expected result: ---------------- string(15) "14:35:58.283437" Actual result: -------------- string(15) "14:35:58.000000"