Jump to content

time intervals


mihail

Recommended Posts

Hi guys,

 

Please help me with this one. How would I list 15 minute intervals starting with $start_time and ending with $end_time (24 hour format)?

 

Example:

$start_time = "11:45";

$end_time = "13:15";

 

Listed intervals: 11:45 12:00 12:15 12:30 12:45 13:00 13:15

 

Also, if start_time and end_time are 00:00, all 15 minute intervals of the day should be listed.

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/39052-time-intervals/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.