10 lines
268 B
JavaScript
10 lines
268 B
JavaScript
|
const CronJob = require('../lib/cron.js').CronJob;
|
||
|
|
||
|
console.log('Before job instantiation');
|
||
|
const job = new CronJob('0 */10 * * * *', function() {
|
||
|
const d = new Date();
|
||
|
console.log('Every Tenth Minute:', d);
|
||
|
});
|
||
|
console.log('After job instantiation');
|
||
|
job.start();
|