Created
September 28, 2014 22:58
-
-
Save jpotts18/2a7b537717a974b4bbb1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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