Documentation
¶
Overview ¶
Package cron parses five-field cron expressions and finds when they next fire. It has no clock and starts no goroutines: callers pass the time.
Fields are minute, hour, day of month, month and day of week. Each is a comma list of "*", "?", a value, a range a-b, optionally followed by "/step". Months and weekdays may be written as names (jan, mon). Day of week 7 means Sunday. When both day fields are restricted a day matches if either does (the traditional rule). The macros @yearly, @annually, @monthly, @weekly, @daily, @midnight and @hourly are accepted.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseError ¶
ParseError says which field of an expression is wrong and why.
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
Schedule is a parsed expression.