Answers for "get current time in milliseconds php"

PHP
1

show date time with milliseconds php

$now = DateTime::createFromFormat('U.u', microtime(true));
echo $now->format("m-d-Y H:i:s.u");
Posted by: Guest on June-04-2020
-1

time now with milliseconds php

$d = new DateTime();
echo $d->format("Y-m-d H:i:s.v"); // v : Milliseconds
Posted by: Guest on June-12-2020

Code answers related to "get current time in milliseconds php"

Browse Popular Code Answers by Language