i have a function that uses current timestamp to fetch some data and sql table, but some data get's doubled because the are in the same second and runs twice.
I need to fetch them with timestamp including miliseconds.
i use
$timestamp = date_format($date, 'Y-m-d H:i:s');
is there anything like:
$serverTime = date_format($date, 'Y-m-d H:i:s:milisecs');
I tried to inlcude milisecs with microtime() in $timestamp but had no luck until now.