diff --git a/README.md b/README.md index 8db4f550..979f71e6 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ It is backwards incompatible with both v1 and v2. These updates are required: // Seconds field, optional cron.New( cron.WithParser( - cron.SecondOptional | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)) + cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)) - The Cron type now accepts functional options on construction rather than the previous ad-hoc behavior modification mechanisms (setting a field, calling a setter). diff --git a/doc.go b/doc.go index ac6b4b07..fbee72c1 100644 --- a/doc.go +++ b/doc.go @@ -49,7 +49,7 @@ implement that by creating a custom Parser as follows. cron.New( cron.WithParser( - cron.SecondOptional | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)) + cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)) The most popular alternative Cron expression format is Quartz: http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger.html