- Category : Php
- Location : Chandigarh
- Posted On : Nov 19, 2016
- Posted by : Guley
split time interval in 15 min slot using php
$array_of_time = array ();
$start_time = strtotime ("2013-08-28 17:45:00");
$end_time = strtotime ("2013-08-28 22:15:00");
$fifteen_mins = 15 * 60;
while ($start_time <= $end_time)
$array_of_time = date ("Y-m-d H:i:s", $start_time);
$start_time = $fifteen_mins;
Add Your Answer
When answering a question please:
- Read the question carefully.
- Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
- If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.