Reputation: 1081
I want to get current Timestamp with millisecond. but date()
returns Timestamp just with seconds.
Upvotes: 2
Views: 3499
Reputation: 7103
You can use microtime (which is better solution because you will get exact value).
Upvotes: 2
Reputation: 1174
You may try below code from source
$now = DateTime::createFromFormat('U.u', microtime(true));
echo $now->format("m-d-Y H:i:s.u");
Upvotes: 1