I am trying to schedule a Cron Job between 9AM to 9PM for every 15 minutes. I am able to schedule it for every 15 minutes, but not for the time duration. Below is the code snippet
const CronJob = require('cron').CronJob
const splunkNode = require('./splunk_node')
let job = new CronJob("*/15 08-21 * * * 1-5", function(){
console.log('ran at ', new Date())
// CRON JOB()
},function(){
console.log('Job stopped')
},true,'America/Los_Angeles')
job.start()
Does the syntax for specifying range has to be enclosed between brackets[]?