Field Mandatory Values Special characters
Month yes 1 - 12 or JAN - DEC , - * /
Day of Week yes 1 - 7 or SUN - SAT , - * / ? L #
Year no 1970 - 2099 , - * /
Table 5: Fields of a Quartz cron expression
Example
A simple example would be:
0 0 19 24 DEC ? 2010
This cron expression would trigger a backup job at 7.00 p.m. on
24.12.2010.
The following table shows the use of special characters in a cron expression:
Special
characters
Description Example Meaning of
the example
x,y Describes a list of 2 or
more values
* * 9 ? * SAT,SUN At 9 a.m.
every Sat-
urday and Sun-
day
x-y A range of values from x to
y inclusive.
* * 6 ? * MON-FRI At 6 a.m.
every Monday
to Friday
* Describes all possible valu-
es
* * * ? * * Every second
x/y Describes a sequence
starting with x and incre-
mented by y
* 0/5 * 1 * ? Every 5 sec-
onds starting
at 0:00 on the
first day of
each month
ServerView Virtual-IO Manager 341
14.1 VIOM Backup Service