Definition of a run interval
You have the following fields for precisely defining when automatic jobs need to be run.
Hour
Time when the job is run; value between 0 and 23.
Value format:
Minute
Minute when the job is run; value between 0 and 59.
Value format:
Day of the week
Number of the day of the week when the job is run; value between 1 (Sunday) and 7 (Saturday).
Value format:
Day of the month
Number of the day in the month when the job is run; value between 1 and 31.
Value format:
Months
Month when the job is run; value between 1 and 12.
Value format:
Special notes
It is not possible to fill in the day of the week AND the day of the month with "*." For a job that must be run every day, fill in "?" for the day of the week and "*" for the day of the month.
Reference information
Values accepted for the five fields used to define the execution date for automatic jobs:
|
Field |
Values allowed |
Special characters allowed |
|
Minute |
0-59 |
, - * / |
|
Hour |
0-23 |
, - * / |
|
Day of the month |
1-31 |
, - * ? / L W |
|
Months |
1-12 or JAN-DEC |
, - * / |
|
Day of the week |
1-7 or SUN-SAT |
, - * ? / L # |
List and meaning of special characters allowed:
|
Character |
Meaning |
|
* |
("All values") |
|
? |
("No value") Entering the expression "0 15 21 8 * *" would result in a type exception "Exception java.lang.UnsupportedOperationException: Support for specifying both a day-of-week AND a day-of-month setting is not implemented." |
|
- |
Used to specify a range. |
|
, |
Used to specify a list of values. |
|
/ |
Used to specify increments.
You can also specify "/" after the "-" character, which in this case is equivalent to putting "0" before the "/." Another example: entering "2/3" in the "Day of month" field means: "run the job every 3 days starting on the second day of the month." |
|
L |
("Last") Used on its own, this character means "the last"
If this character is used after another value, however, it means "the last [xxx]day of the month." |
|
W |
("Weekday") Examples:
Special cases:
|
|
# |
Means "the Nth [xxx]day of the month."
|
Examples of intervals
|
Interval |
Hour |
Minute |
Day of the week |
Day of the month |
Months |
|
Every day at 01:30 |
1 |
30 |
? |
* |
* |
|
Every hour after 10 minutes have passed |
* |
10 |
? |
* |
* |
|
Every first day of a month at 05:00 |
5 |
0 |
? |
1 |
* |
|
Every Tuesday at 13:25 |
13 |
25 |
3 |
* |
* |
|
From the 8th to the 10th of each month at 12:12 |
12 |
12 |
* |
8-10 |
* |
|
Every even day of the month at 23:59 |
23 |
59 |
* |
*/2 |
* |
|
Every 10 minutes starting with the hour |
0 |
*/10 |
? |
* |
* |