Skip to content

Commit bccb95d

Browse files
committed
Describe the special characters in the readme
1 parent ea391b7 commit bccb95d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,13 @@ This package implements the specification found in [Wikipedia](https://en.wikipe
2323
| Month | 1-12 | , - * / |
2424
| Day of week | 0-6 or SUN-SAT | , - * ? / L # |
2525
| Years | 1-9999 | , - * / |
26+
27+
#### Special characters
28+
29+
* `*` can be used to select all values within a field (e.g. every second, every minute, ...)
30+
* `?` can be used for no specific value in the day field or the week day field.
31+
* `-` can be used to specify an inclusive range (e.g. `1-3` means values 1, 2, and 3).
32+
* `,` can be used to list values (e.g. `1,2,3` means values 1, 2 and 3).
33+
* `/` can be used to specify an interval (e.g. `1/5` means values 1, 6, 11, 16, etc...).
34+
* `L` when used in the month field specifies the last day of the month and Saturday when used in the week day field. Using a digit before the character in the week day field specifies the nth last week day of the month (e.g. `1L` for the last Monday of the month). An offset can also be used for the month field (e.g. `L-2` for the second last day of the month).
35+
* `#` can be used to specify the nth week day of the month (e.g. `6#3` for the third (`3`) Friday (`6`) of the month).

0 commit comments

Comments
 (0)