bunkat / later

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.
http://bunkat.github.io/later/
MIT License
2.42k stars 244 forks source link

Invalid schedule for .recur().every(360).second() #224

Open aviranco opened 6 years ago

aviranco commented 6 years ago

every X that is higher than 60 produces an invalid schedule.

For example: later.parse.recur().every(360).second()

Produces: { "schedules": [ { "s": [ 0 ] } ], "exceptions": [] }

which is every 1 minute instead of every 5 minutes.