Using cron this is how i was able to solve it... Thanks to @Jonathan Brooks
var CronJob = require('cron').CronJob;
new CronJob({
cronTime: '00 00 00 28,29,30 * *',
onTick: function() {
console.log('Runs every 28, 29(february) or 30 days');
},
start: true,
timeZone: 'America/Los_Angeles'
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.