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

Function WithLocation

option.go:11–15  ·  view source on GitHub ↗

WithLocation overrides the timezone of the cron instance.

(loc *time.Location)

Source from the content-addressed store, hash-verified

9
10// WithLocation overrides the timezone of the cron instance.
11func WithLocation(loc *time.Location) Option {
12 return func(c *Cron) {
13 c.location = loc
14 }
15}
16
17// WithSeconds overrides the parser used for interpreting job schedules to
18// include a seconds field as the first one.

Callers 2

TestWithLocationFunction · 0.85
TestNonLocalTimezoneFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestWithLocationFunction · 0.68
TestNonLocalTimezoneFunction · 0.68