Files
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -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));