14 lines
220 B
JavaScript
14 lines
220 B
JavaScript
|
const CronJob = require('../lib/cron.js').CronJob;
|
||
|
|
||
|
console.log('first');
|
||
|
const job = new CronJob(
|
||
|
'0 0 9 4 * *',
|
||
|
function() {
|
||
|
console.log('message');
|
||
|
},
|
||
|
null,
|
||
|
true,
|
||
|
'America/Sao_Paulo'
|
||
|
);
|
||
|
console.log('second');
|