Files
Testing/html5-chat1/nodeMulti/node_modules/cron/examples/get_next_runs.js
sean 343b4a3f3f
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-19 18:32:17 -05:00

25 lines
393 B
JavaScript

const CronJob = require('../lib/cron.js').CronJob;
const job = new CronJob(
'0 * * * * *',
function() {
console.log('Date: ', new Date());
},
null,
true
);
console.log('System TZ next 5: ', job.nextDates(5));
const jobUTC = new CronJob(
'0 * * * * *',
function() {
console.log('Date: ', new Date());
},
null,
true,
'UTC'
);
console.log('UTC next 5: ', jobUTC.nextDates(5));