cron
Specify the cron expression.
new Job('test', R.debug).cron('0 0 0 1 3 ?').getCronExpression()
// 0 0 0 1 3 ?
Specify the cron expression.
new Job('test', R.debug).cron('0 0 0 1 3 ?').getCronExpression()
// 0 0 0 1 3 ?
Specify the second component of the cron expression.
new Job('test', R.debug).atSecond(10).getCronExpression()
// 10 0 0 * * ?
Specify the minute component of the cron expression.
new Job('test', R.debug).atMinute(30).getCronExpression()
// 0 30 0 * * ?
Specify the hour component of the cron expression.
new Job('test', R.debug).atHour(12).getCronExpression()
// 0 0 12 * * ?
Specify on which day of month.
new Job('test', R.debug).onDay(12).getCronExpression()
// 0 0 0 12 * ?
Specify from which day, usually used with 'everyDays'.
new Job('test', R.debug).fromDay(2).everyDays(3).getCronExpression()
// 0 0 0 2/3 * ?
Specify on which days.
new Job('test', R.debug).onDays(new List{ 3, 4, 5 }).getCronExpression()
// 0 0 0 3,4,5 * ?
Specify a day range.
new Job('test', R.debug).betweenDays(2, 5).getCronExpression()
// 0 0 0 2-5 * ?
Specify every day.
new Job('test', R.debug).everyDay().getCronExpression()
// 0 0 0 * * ?
Specify every N days.
new Job('test', R.debug).betweenDays(1, 20).everyDays(2).getCronExpression()
// 0 0 0 1-20/2 * ?
Specify in which month.
new Job('test', R.debug).inMonth('Sep').getCronExpression()
// 0 0 0 * 9 ?
Specify from which month.
new Job('test', R.debug).fromMonth(1).everyMonths(2).getCronExpression()
// 0 0 0 * 1/2 ?
Specify in which months.
new Job('test', R.debug).inMonths(new List