Versions in this module Expand all Collapse all v0 v0.55.0 May 4, 2024 v0.54.0 Apr 4, 2024 Changes in this version + const Day + const ScheduleKindDaily + const ScheduleKindHourly + const ScheduleKindMinutely + const ScheduleKindMonthly + const ScheduleKindWeekly + const Week + var ErrDurationMissingValue = errors.New("missing value in duration") + var ErrScheduleUnknown = errors.New(`unknown schedule`) + var ShortDayNames = []string + var ShortMonths = map[string]time.Month + func Microsecond(t *time.Time) int64 + func ParseDuration(s string) (time.Duration, error) + func SortClock(list []Clock) + func UnixMilliString(t time.Time) string + type Clock struct + func CreateClock(hour, min, sec int) Clock + func ParseClock(v string) (c Clock) + func (c Clock) After(d Clock) bool + func (c Clock) Before(d Clock) bool + func (c Clock) Equal(d Clock) bool + func (c Clock) Hour() int + func (c Clock) Minute() int + func (c Clock) Second() int + func (c Clock) String() string + type Scheduler struct + C <-chan time.Time + func NewScheduler(schedule string) (sch *Scheduler, err error) + func (sch *Scheduler) Next() (next time.Time) + func (sch *Scheduler) Stop()