|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-09-29 15:04 UTC] requinix@php.net
-Status: Open
+Status: Duplicate
[2017-09-29 15:04 UTC] requinix@php.net
[2017-09-29 15:08 UTC] ivan at podorozhny dot ru
[2017-09-29 15:11 UTC] salathe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 10:00:01 2025 UTC |
Description: ------------ \DateTime::format('v') returns 4 symbols instead of 3 Test script: --------------- $dateTime = new \DateTime('2017-09-29 17:44:48.999600'); var_dump($dateTime->format('Y-m-d H:i:s.v')); // '2017-09-29 17:44:48.1000' instead of '2017-09-29 17:44:48.999' or even '2017-09-29 17:44:49.000'