The Contains and During functions did not check if the two intervals start-times were equal. This caused some problems when trying to use the library. I do not know if this behavior is correct according to Allen's Interval Algebra, but it makes my life easier.
BE WARNED: The library is ready for production if I tag the library with 1.0.0.
This library implements the Allen's interval algebra for go lang time intervals.
The go-interval library supports answering questions concerning time intervals. You can check if intervals overlap, seamlessly connect, there is a gap between the intervals, and more.
go get github.com/zurs/go-interval
glide get github.com/zurs/go-interval
import "github.com/zurs/go-interval"
© 2018 by Retailify GmbH