php military time to standard and add one hour to time


$military_time = date('H:i:s', strtotime($row['whateveryourmildatefieldis']));
$newtime = strtotime($military_time . ' + 1 hours');
$newtime = date('Y-m-d H:i:s', $newtime);
$standard_time = date('h:i:s A', strtotime($newtime));

This entry was posted in Uncategorized. Bookmark the permalink.