This doesn’t work because you compare a DateTime object with a string. You need to use two DateTime objects:
$store_closed = DateTime::createFromFormat ('H:i:s', '1:00:00');
echo ($store_closed > $set_time) ? 'yes' : 'no';
1
solved Need help comparing times using datetime [closed]