Skip to content

Instantly share code, notes, and snippets.

@rveitch
Created October 2, 2019 18:17
Show Gist options
  • Select an option

  • Save rveitch/e029b0780db673a902543fefffb304cf to your computer and use it in GitHub Desktop.

Select an option

Save rveitch/e029b0780db673a902543fefffb304cf to your computer and use it in GitHub Desktop.
Node Schedule Example
const schedule = require('node-schedule'); // https://github.com/node-schedule/node-schedule
const job = schedule.scheduleJob('55 23 * * SUN', () => {
console.log('I am a job scheduled to run at 23:55 every Sunday.');
});
console.log('job.nextInvocation:', job.nextInvocation().toString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment