A javascript library for defining recurring schedules and calculating future (or past) occurrences for them. Includes support for using English phrases and Cron schedules. Works in Node and in the browser.
var c = new Date();
var month = c.getMonth();
var year = c.getFullYear();
var day = c.getDay();
var hours = c.getHours();
var minutes = c.getMinutes();
`var sched = {schedules: [ {h: [12], m: [08]}, {h: [17], m: [30]} ]};
var c = new Date(); var month = c.getMonth(); var year = c.getFullYear(); var day = c.getDay(); var hours = c.getHours(); var minutes = c.getMinutes();
var teste = later.schedule(sched);
later.setInterval(function(){console.log(new Date());}, teste);`
what is wrong?