In the above code check how the hour has changed the day by adding one.
Using today's date
$date = new DateTime();
$date->setTime(14,30,45, 500000); //2:30:45 PM and 500000 microseconds
echo $date->format('Y-m-d H:i:s.u'); // Output: 14:30:45.500000
Output
2025-01-19 14:30:45.500000
Using Today's date and current time
$date = new DateTime(); // Current date and time
$currentHour = (int) $date->format('H');
$currentMinute = (int) $date->format('i');
$currentSecond = (int) $date->format('s');
$currentMicrosecond = (int) $date->format('u');
$date->setTime($currentHour, $currentMinute, $currentSecond, $currentMicrosecond);
echo $date->format('Y-m-d H:i:s.u'); // Output includes current date with precise time