<?php $slot_count = 5; $start = strtotime("08:00"); echo date("H:i:s", $start).'<br/>'; for( $i=0; $i<$slot_count; $i++ ) { $start = $start; $end_new = date("H:i:s", strtotime('+20 minutes', $start)); $start = strtotime($end_new); echo $end_new.'<br/>'; }
You have javascript disabled. You will not be able to edit any code.