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

17 lines
260 B
JavaScript
Raw Normal View History

2023-07-26 11:01:58 +00:00
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');