lord

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_TIME_OF_DAY = models.TimeOfDay(time.Duration(0))

Functions

This section is empty.

Types

type TimeLord

type TimeLord struct {
	PreviousTime time.Time
	Location     *models.Location
	Start        *models.TimeOfDay
	Stop         *models.TimeOfDay
	Interval     *models.Interval
	Days         []models.Weekday
}

func (TimeLord) Check

func (tl TimeLord) Check(now time.Time) bool

func (TimeLord) Latest added in v1.4.0

func (tl TimeLord) Latest(reference time.Time) time.Time

func (TimeLord) LatestRangeBefore added in v1.4.0

func (tl TimeLord) LatestRangeBefore(reference time.Time) (time.Time, time.Time)

func (TimeLord) List added in v1.4.0

func (tl TimeLord) List(reference time.Time) []time.Time

Jump to

Keyboard shortcuts

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