thephpleague / period

PHP's time range API

Home Page:https://period.thephpleague.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request -- Find available from multiple periods of time

jackdpeterson opened this issue · comments

Issue summary

Given a collection of Periods where the internal startTime == the lowest value in the collection and the internal endTime == the highest value in the collection, The return of this method would be all of the gaps of unused time (and supporting intersecting / abutting periods). Effectively this would be an inversion of all of the periods in the given collection.

this has been discussed in length in #48