getting free time-space ?

Hello

Anyone has got an idea how to get the free space in scheduler?
For example i created an event from 08-09, 10-11 and 15-16 (first_hour is set to 8 and last_hour is set to 17). Now i need to know the free space. Solution should be 9-10,11-15 and 16-17.

Thank you for any help.

Best regards
Oliver

There is no ready function, but you can use getEvents to get all events for defined time area, and after that loop through them to find holes.

That helped … Thanks