PHP新的DateTime得到中午/ 12.00 p.m每天都在变化

i have a problem for getting noon / 12.00 p.m that change every day.

let imagine this :

$objToday = new DateTime("today", new DateTimeZone('Asia/Jakarta'));
$objTomorrow = new DateTime("tomorrow", new DateTimeZone('Asia/Jakarta'));

if (// today time has not been passed 12.00 p.m) {
  // get Today at 12.00 p.m
   echo "$objToday->format("Y-m-d G:i:s")";

}
else {
 // this "else" means the time has passed from 12.00 p.m (today)
 // so, it's automaticly change to (tommorow) at 12.00 p.m
 // get Tomorrow at 12.00 p.m
    echo "what to do here?";
}

what methods should be solve this problem?

thanks..

Try like below

$info = getdate();
    if ($info['hours'] < 12) {
      // get Today at 12.00 p.m
       echo "$objToday->format("Y-m-d G:i:s")";
    }
    else {
        echo "what to do here?";
}

$date->modify('tomorrow') then format for 12 noon.