On Sun, Nov 23, 2003 at 03:42:58PM -0000, Shaun wrote: : : Given the time range: 09:15 - 17:30 how can I tell how many 15 minute : intervals occur between these two times? Obviously here I can work it out, : but I need a calculation that will perform the maths for any two time : ranges...
$time1 = '09:15'; $time2 = '17:30'; $intervals = floor((strtotime($time2) - strtotime($time1)) / 900); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php