Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set seconds to 0

  • Loading branch information...
commit ca0267c317a98ab3218535dc06b53bb47d0b0c06 1 parent cc02015
Craig Jefferds crcn authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/cron.js
6 lib/cron.js
View
@@ -75,6 +75,7 @@ CronTime.prototype = {
}
if (!(date.getMinutes() in this.minute)) {
date.setMinutes(date.getMinutes()+1);
+ date.setSeconds(0);
continue;
}
@@ -260,6 +261,11 @@ exports.timeout = function(cronTime)
return new CronTime(cronTime).timeout();
}
+console.log(new Date());
+var sendAt = exports.sendAt('01 30 11 * * *');
+
+console.log(sendAt);
+
exports.CronJob = CronJob;
exports.CronTime = CronTime;
Please sign in to comment.
Something went wrong with that request. Please try again.