Skip to content

Instantly share code, notes, and snippets.

@jpotts18
Created September 28, 2014 22:58
Show Gist options
  • Save jpotts18/2a7b537717a974b4bbb1 to your computer and use it in GitHub Desktop.
Save jpotts18/2a7b537717a974b4bbb1 to your computer and use it in GitHub Desktop.
var schedule = require('node-schedule');
var getDate = function (){
var date = new Date();
var inTenSeconds = new Date(date.getTime() + 1000);
return inTenSeconds;
}
var everyMinute = function(){
return "* * * * *"
}
var sendNotification = schedule.scheduleJob(everyMinute(), function(){
console.log('This is a fired email to send notifications');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment