I can’t think right now…. i’ve been trying to figure out how many half hours there are between two variables, which will have the start and end times like so, 1100 and 1430
I started doing the following but realized time doesnt go to 100!
function process_blocks(startTime,endTime){
var blocks = 0;
startTime = +startTime;
endTime = +endTime;
while(startTime < endTime){
startTime = startTime + 30; // add a half hour, which is a block
blocks++;
}
return blocks;
}
see my working demo: http://jsfiddle.net/roberkules/pUfF2/