haifa-reminder/node_modules/cron/examples/utc_offset_syntax.js

16 lines
260 B
JavaScript
Executable file

const CronJob = require('../lib/cron.js').CronJob;
console.log('first');
const job = new CronJob(
'0 0 9 4 * *',
function() {
console.log('message');
},
null,
true,
null,
null,
null,
-360, // UTC-6, represented in minutes
);
console.log('second');