[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Cron syntax: mistake in Quartz documentation or mistake in Quartz Javadoc?  XML
Forum Index -> Quartz
Author Message
feek

neo

Joined: 10/03/2013 05:56:58
Messages: 2
Offline

The Quartz 2.2 documentation at http://quartz-scheduler.org/documentation/quartz-2.2.x/tutorials/tutorial-lesson-06 says:

Months can be specified as values between 0 and 11. [...] Days-of-Week can be specified as values between 1 and 7 (1 = Sunday)  


The Quartz 2.2 CronExpression Javadoc at http://quartz-scheduler.org/api/2.2.0/org/quartz/CronExpression.html says:

Field Name: Month.... Allowed Values: 1-12

For months [the numbers range is] 1 to 12 


Now I am confused. Which format is the correct format?

(... and also, regarding days-of week, for "standard cron", there seems to be the standard numbers range 0-6. So is Quartz deviating from "standard cron").
jhouse

seraphim
[Avatar]
Joined: 11/06/2009 15:29:56
Messages: 1703
Offline

Looks like a bug in the javadoc 0-11 is what the code accepts for months.
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team