how to use php TIME function to list the times from 8:00am to 18:00pm with the unit of 15 minutes? The output should be something like below:
8:00AM 8:15AM 8:30AM ... 17:45PM 18:00PM
thanks.
Jie Huang
Make a loop. Use [man]date[/man] with [man]strtotime[/man].
Or an extremely dirty way... which I don't recommend although it can be made dynamic.
<?php $tStart = 1072947600; $tEnd = 1072980900; while ($tStart < $tEnd) { echo date("H:i A",$tStart)."<br />"; $tStart+=900; } ?>