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
| Day of the week | 0-6 (or SUN to SAT; or 7 for Sunday) |
248
+
249
+
#### Matching all values
250
+
251
+
To match all values for a field, use the asterisk: `*`, e.g here are two examples in which the minute field is left unrestricted:
252
+
253
+
-`* 0 1 1 1` - the job runs every minute of the midnight hour on January 1st and Mondays.
254
+
-`* * * * *` - the job runs every minute (of every hour, of every day of the month, of every month, every day of the week, because each of these fields is unrestricted too).
255
+
256
+
#### Matching a range
257
+
258
+
To match a range of values, specify your start and stop values, separated by a hyphen (-). Do not include spaces in the range. Ranges are inclusive. The first value must be less than the second.
259
+
260
+
The following equivalent examples run at midnight on Mondays, Tuesdays, Wednesdays, Thursdays, and Fridays (for all months):
219
261
262
+
-`0 0 * * 1-5`
263
+
-`0 0 * * MON-FRI`
264
+
265
+
#### Matching a list
266
+
267
+
Lists can contain any valid value for the field, including ranges. Specify your values, separated by a comma (,). Do not include spaces in the list, e.g:
268
+
269
+
-`0 0,12 * * *` - the job runs at midnight and noon.
270
+
-`0-5,30-35 * * * *` - the job runs in each of the first five minutes of every half hour (at the top of the hour and at half past the hour).
0 commit comments