Permalink
Browse files

Merge pull request #72 from lfthomaz/master

exposed the nextDate method for the CronJob prototype
  • Loading branch information...
ncb000gt committed Jan 28, 2014
2 parents 1fb7ba0 + 4db365b commit 4191a4cf7a3d2647cf753c3092517167b19ce2eb
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/cron.js
View
@@ -324,7 +324,13 @@ CronJob.prototype = {
this.cronTime = time;
},
-
+ /**
+ * Return the next scheduled date for a job
+ */
+ nextDate: function() {
+ return this.cronTime.sendAt();
+ },
+
/**
* Start the cronjob.
*/

0 comments on commit 4191a4c

Please sign in to comment.