[Solved] setTime() replacement in php [closed]


First of all, you need to convert milliseconds to seconds and then use the date() function with the following format:

$mili = 1641951202187.3433;
$sec = $mili /1000;
echo date('M-m-Y H:i:s',$sec);

solved setTime() replacement in php [closed]