<?php $period = new DatePeriod( new DateTime('today 06:00:00'), new DateInterval('PT30M'), new DateTime('today 22:00:00'), DatePeriod::INCLUDE_END_DATE ); foreach ($period as $dt) { printf( "<option>%s</option>\n", $dt->format('h:i a'), ); }
You have javascript disabled. You will not be able to edit any code.