Documentation ¶
Index ¶
- Variables
- type TimeIntervalSet
- func IntersectTimeIntervalSets(sets ...TimeIntervalSet) TimeIntervalSet
- func MergeTimeIntervalSets(left TimeIntervalSet, right TimeIntervalSet, ...) TimeIntervalSet
- func NewTimeInterval(start time.Time, end time.Time) TimeIntervalSet
- func UnionTimeIntervalSets(sets ...TimeIntervalSet) TimeIntervalSet
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyTimeIntervalSet = TimeIntervalSet{}
View Source
var FullTimeIntervalSet = TimeIntervalSet{UnboundedBelow: true}
Functions ¶
This section is empty.
Types ¶
type TimeIntervalSet ¶
func IntersectTimeIntervalSets ¶
func IntersectTimeIntervalSets(sets ...TimeIntervalSet) TimeIntervalSet
func MergeTimeIntervalSets ¶
func MergeTimeIntervalSets(left TimeIntervalSet, right TimeIntervalSet, predicate func(testpoint time.Time) bool) TimeIntervalSet
MergeTimeIntervalSets creates a new TimeIntervalSet from two other TimeIntervalSets. The predicate function is called on various test points derived from the input sets and should return true if the testpoint should be in the resulting set.
func NewTimeInterval ¶
func NewTimeInterval(start time.Time, end time.Time) TimeIntervalSet
NewTimeInterval returns a TimeIntervalSet for the left-closed, right-open range [start, end)
func UnionTimeIntervalSets ¶
func UnionTimeIntervalSets(sets ...TimeIntervalSet) TimeIntervalSet
func (TimeIntervalSet) Complement ¶
func (tis TimeIntervalSet) Complement() TimeIntervalSet
func (TimeIntervalSet) String ¶
func (tis TimeIntervalSet) String() string
func (TimeIntervalSet) TotalDuration ¶
func (tis TimeIntervalSet) TotalDuration() time.Duration
Click to show internal directories.
Click to hide internal directories.