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

10 lines
262 B
JavaScript
Raw Normal View History

2023-07-26 11:01:58 +00:00
const CronJob = require('../lib/cron.js').CronJob;
console.log('Before job instantiation');
const job = new CronJob('* 10 * * * *', function() {
const d = new Date();
console.log('At Ten Minutes:', d);
});
console.log('After job instantiation');
job.start();