Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Periodic ¶
type Periodic struct {
// contains filtered or unexported fields
}
Periodic keeps track of a repeating period of time
func ParsePeriodic ¶
ParsePeriodic returns a Periodic specified as a start and duration.
func (*Periodic) DurationToStart ¶
DurationToStart returns the duration between the supplied time and the start of Periodic's relevant period. If we're in a period, a value <= 0 is returned, indicating how deep into period we are. If we're outside a period, a value > 0 is returned, indicating how long before the next period starts.
Click to show internal directories.
Click to hide internal directories.