Versions in this module Expand all Collapse all v0 v0.1.0 Mar 24, 2021 Changes in this version + const AnyTimeCronSpec + type TimeRange struct + func NewDomTimeRange(left, right uint) (*TimeRange, error) + func NewDowTimeRange(left, right uint) (*TimeRange, error) + func NewHourTimeRange(left, right uint) (*TimeRange, error) + func NewMinTimeRange(left, right uint) (*TimeRange, error) + func NewMonthTimeRange(left, right uint) (*TimeRange, error) + func NewTimeRange(spec string) (*TimeRange, error) + func (r *TimeRange) IsTimeUp(tm time.Time) (bool, time.Time) + func (r *TimeRange) IsTimeUpNow() (bool, time.Time) + func (r *TimeRange) Spec() string + func (t *TimeRange) Clock() (bool, time.Time) + func (t *TimeRange) ClockIn(tm time.Time) (bool, time.Time) + type TimeSpan struct + func NewTimeSpan(interval time.Duration, lastAt time.Time) *TimeSpan + func (t *TimeSpan) Clock() (bool, time.Time) + func (t *TimeSpan) ClockIn(tm time.Time) (bool, time.Time) + func (t *TimeSpan) Interval() time.Duration + func (t *TimeSpan) IsTimeUp(tm time.Time) (bool, time.Time) + func (t *TimeSpan) IsTimeUpNow() (bool, time.Time) + func (t *TimeSpan) LastAt() time.Time + func (t *TimeSpan) ResetAs(tm time.Time) + func (t *TimeSpan) ResetNow() + type Timer interface + Clock func() (bool, time.Time) + ClockIn func(tm time.Time) (bool, time.Time) + IsTimeUp func(tm time.Time) (bool, time.Time) + IsTimeUpNow func() (bool, time.Time) + type TimerList struct + func NewTimerList(timers ...Timer) (*TimerList, error) + func (t *TimerList) Clock() (bool, time.Time) + func (t *TimerList) ClockIn(tm time.Time) (bool, time.Time) + func (t *TimerList) IsTimeUp(tm time.Time) (bool, time.Time) + func (t *TimerList) IsTimeUpNow() (bool, time.Time)