internal

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtMidnight

func AtMidnight() <-chan time.Time

func IntervalOverlap

func IntervalOverlap(a, b TimeInterval) bool

Types

type TimeInterval

type TimeInterval struct {
	Start, End time.Time
}

func IntervalDifference

func IntervalDifference(a, b TimeInterval) []TimeInterval

intervalDifference: will return intervals containing a-b meaning the intervals left after b interval has been removed

func IntervalDifferenceSlice

func IntervalDifferenceSlice(a []TimeInterval, b TimeInterval) []TimeInterval

func IntervalDifferences

func IntervalDifferences(a ...TimeInterval) []TimeInterval

intervalDifferences differences the first element with all the other elements

func IntervalIntersection

func IntervalIntersection(a, b TimeInterval) []TimeInterval

intervalIntersection: will return intervals containing

func IntervalUnion

func IntervalUnion(a, b TimeInterval) []TimeInterval

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL