Split time slots between start time and end time in PHP

Creating time between start time and end time in interval of 30 Minutes in PHP

Test it now

 

 

8 Comments

  1. What if i add the time zone in the times. For example this time is in UTC and i converted this time to Newyork/losangles then end_date will be converted to next day. How can we handle this because while ($start_time <= $end_time) // loop between time this condition will not work here.

Leave a Reply

Your email address will not be published.


*


*