I have some break times available in my module. In one for loop i need to remove break times. I have three break times 11:30 am to 11:45 am and lunch break 01:30 pm to 02:30 pm and tea break 04:30 pm to 04:45 pm
<?php
$start = new DateTime("09:30 am");
$end = new DateTime("06:30 pm");
$current = clone $start;
while ($current <= $end) {
echo $current->format("h:i a"), "\n";
$current->modify("+15 minutes");
}
?>
Please help me to solve this problem