Skip to main content

Module availability

Module availability 

Source
Expand description

Free-slot computation over a busy list within working hours.

Walks each local working day inside a UTC range, subtracts merged busy intervals, and keeps gaps at least as long as the requested duration.

Structs§

Busy
Slot
WorkingHours
Working hours in local time. weekdays[0] is Monday.

Functions§

free_slots
Compute free slots within range, honoring hours (interpreted in tz) and subtracting merged busy intervals. Returns at most max slots.