|
|
@@ -15,6 +15,14 @@ func WithLocation(loc *time.Location) Option {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// WithSeconds overrides the parser used for interpreting job schedules to
|
|
|
+// include a seconds field as the first one.
|
|
|
+func WithSeconds() Option {
|
|
|
+ return WithParser(NewParser(
|
|
|
+ Second | Minute | Hour | Dom | Month | Dow | Descriptor,
|
|
|
+ ))
|
|
|
+}
|
|
|
+
|
|
|
// WithParser overrides the parser used for interpreting job schedules.
|
|
|
func WithParser(p Parser) Option {
|
|
|
return func(c *Cron) {
|