Its an alias of DateTime::setTime()and it sets the time
Example
<?php
$date = date_create(‘2001-05-17’);
date_time_set($date, 17, 54);
echo date_format($date, ‘Y-m-d H:i:s’) . “n”;
?>
Output
2001-05-17 17:54:00
<?php
$date = date_create(‘2001-05-17’);
date_time_set($date, 17, 54);
echo date_format($date, ‘Y-m-d H:i:s’) . “n”;
?>
Output
2001-05-17 17:54:00