Skip to content

Commit dc59629

Browse files
committed
Fix readme[skip ci]
1 parent 6986b9b commit dc59629

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

readme.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,22 @@ on mondays at 10:30
5555

5656
## Dates/Months:
5757

58-
You can either use exact dates like `in dec 9 at 9:30` or only months `in dec at 9:30`
59-
You can also write the full words like `in december at 9:30`
60-
Multiple Months are supported
58+
You can either use exact dates like `in dec 9 at 9:30` or only months `in dec at 9:30`
59+
You can also write the full words like `in december at 9:30`
60+
Multiple Months are supported
61+
You can also use the expression `from <num> through <num>` to define a day interval
6162

6263
### Tokens
6364

6465
`jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec`
66+
`from <num> through <num>`
6567

6668
Examples:
6769

6870
```
6971
on jan feb mar only mondays tuesdays and saturdays at 9:30
7072
on dec mar apr at 13:37
73+
on march and april from 15 through 25 on every 2 hours
7174
```
7275

7376
## Times:

test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,18 @@ test(
4949
'every 15 minutes from 5 through 15 of december and january',
5050
'0 */15 * 5-15 1,12 *'
5151
);
52+
test(
53+
'on march and april from 15 through 25 on every 2 hours',
54+
'0 0 */2 15-25 3,4 *'
55+
);
56+
57+
58+
5259
//test('every week in 15 minute intervals on january', '0 */15 * */7 1 *');
5360
//test('every week on january', '0 0 0 */7 1 *');
5461

5562
if (process.env.TESTWATCH) {
5663
process.stdout.write('\u001b[3J\u001b[2J\u001b[1J');
5764
console.clear();
5865
}
66+

0 commit comments

Comments
 (0)