By default, the crontab uses OR when the day of the week and day of the month are specified.
7 0 12 * Fri will run your cronjob at 00:07 on Friday OR on day 12 of each month.
It would be impossible to require matching of both the day of the week and the day of the month using either crontab syntax or time expression.
For example, run cronjobs on Friday the 12th, or run on Tuesday and Wednesday from day 10 to day 20.
To solve this, FastCron now supports the Time filter.
To show the Time filter, click on the Filter button.
It supports simple expressions with 5 variables:
minute: integer, from 0 to 59
hour: integer, from 0 to 23
day: integer, from 1 to 31
month: integer, from 1 to 12
weekday: string, including
It supports a lot of operators. See the full list here.
Here are some examples for you:
1 day 8:00(or
0 8 * * *) and the filter to
day == 12 and weekday == 'Fri'
(weekday == 'Tue' or weekday == 'Wed') and day >= 10 and day <= 20or
weekday in ['Tue', 'Wed'] and day >= 10 and day <= 20
This feature is available for the Indie, Team, and Business plans.
If you need some custom time settings, comment below and I'll help.
Please log in to comment.
Powered by Updote.