13 lines
220 B
JavaScript
Executable file
13 lines
220 B
JavaScript
Executable file
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');
|