You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lib does not allow for cron expression with Year as specified in Quartz #6
Fixed in #49. make_cron now accepts the optional seventh field:
"00 00 09 12 03 ? 2019" -> 2019-03-12 09:00:00
under all three traits (with month 02 for oracle, which numbers months from zero). Asked from a date after that day it correctly reports no next occurrence, since the year has gone by.
Your first expression, 00 00 09 12 03 2019, stays rejected — that's six fields, which puts 2019 in the day-of-week position. Quartz doesn't accept it either; the tutorial you linked specifies [Year] as an optional seventh field, after day-of-week. The error message now says the value is out of range rather than complaining about the field count.
Activity
mariusbancila commentedon Aug 12, 2026
Fixed in #49.
make_cronnow accepts the optional seventh field:under all three traits (with month 02 for oracle, which numbers months from zero). Asked from a date after that day it correctly reports no next occurrence, since the year has gone by.
Your first expression,
00 00 09 12 03 2019, stays rejected — that's six fields, which puts 2019 in the day-of-week position. Quartz doesn't accept it either; the tutorial you linked specifies[Year]as an optional seventh field, after day-of-week. The error message now says the value is out of range rather than complaining about the field count.Both cases are covered by tests.