Last active
February 2, 2016 13:25
-
-
Save andrewjmead/20fed43c1611c1afac81 to your computer and use it in GitHub Desktop.
Cron Job Midnight
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 CronJob = require('cron').CronJob; | |
| var job = new CronJob({ | |
| cronTime: '00 00 00 * * *', | |
| onTick: function() { | |
| /* | |
| * Run a 12:00am every night | |
| */ | |
| }, | |
| start: false | |
| }); | |
| job.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment