Documentation ¶
Overview ¶
Package match provides functionality to find matching times. This is the core logic of sleepto.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Condition ¶
type Condition struct { Year []int Month []time.Month Day []int // 1 to 31 Weekday []time.Weekday Hour []int // 0 to 23 Minute []int // 0 to 59 Second []int // 0 to 59 }
Condition is used to match a time. All fields are optional and can be used in any combination. For each field one value of the list has to match to find a match for the condition.
Click to show internal directories.
Click to hide internal directories.