MCPcopy
hub / github.com/robfig/cron / WithSeconds

Function WithSeconds

option.go:19–23  ·  view source on GitHub ↗

WithSeconds overrides the parser used for interpreting job schedules to include a seconds field as the first one.

()

Source from the content-addressed store, hash-verified

17// WithSeconds overrides the parser used for interpreting job schedules to
18// include a seconds field as the first one.
19func WithSeconds() Option {
20 return WithParser(NewParser(
21 Second | Minute | Hour | Dom | Month | Dow | Descriptor,
22 ))
23}
24
25// WithParser overrides the parser used for interpreting job schedules.
26func WithParser(p ScheduleParser) Option {

Callers

nothing calls this directly

Calls 2

WithParserFunction · 0.85
NewParserFunction · 0.85

Tested by

no test coverage detected