later
later copied to clipboard
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 b...
Cron Expression "0 0 3 ? *" WED,FRI * means "At 03:00 AM, only on Wednesday and Friday" var cron_schedule = later.parse.cron(0 0 3 ? * WED,FRI *); var first_schedule...
I am trying to create recurrence every 3 and 6 months using the later.js(https://github.com/bunkat/later). This is my code ``` // My value.scheduled_date is 2018-09-06 var d = new Date(value.scheduled_date); var...
every 8 hour starting on the 5:00 PM ```javascript [ '2018-06-04T21:00:00.000Z', '2018-06-05T05:00:00.000Z', // 5 am not 5 pm '2018-06-05T13:00:00.000Z', '2018-06-05T21:00:00.000Z', '2018-06-06T05:00:00.000Z', // 5 am not 5 pm '2018-06-06T13:00:00.000Z', '2018-06-06T21:00:00.000Z', '2018-06-07T05:00:00.000Z',...
How to display what time is left after the [later.js text parser](https://bunkat.github.io/later/parsers.html#text) applied? For example, I want to know it before the `setInterval` started. const later = require('later'); later.date.localTime(); const...
Run this ``` let date = new Date(); console.log(later.schedule(later.parse.text('every 1 hours')).prev(2, date)); console.log(later.schedule(later.parse.text('every 1 hours')).next(2, date)); console.log(later.schedule(later.parse.text('every 30 minutes')).prev(2, date)); console.log(later.schedule(later.parse.text('every 30 minutes')).next(2, date)); ``` and notice the odd current...
Hi!. Im trying to implement a later.setInterval function, and the function is an async call to API (Ajax). Is there any reestriccion? The thing is that the function is executed...
var gt = later.parse.cron('0/50 * 1/1 * ? '); var local = new Date("2018-1-29 11:45"); var curDate = new Date(); local.setMinutes(local.getMinutes() - local.getTimezoneOffset()); curDate.setMinutes(curDate.getMinutes() - curDate.getTimezoneOffset()); var arrNextMatchingSchedules = later.schedule(gt).next(5,...
``` later.date.localTime() let my_schedule = later.parse.text('at 16:48 every day') let times = later.schedule(my_schedule).next(10) console.log(times) ``` seems to be returning the following for me: ``` [ 2017-02-01T21:48:00.000Z, 2017-03-01T21:48:00.000Z, 2017-04-01T20:48:00.000Z, 2017-05-01T20:48:00.000Z, 2017-06-01T20:48:00.000Z,...
I'm using sched.next(count, start date) API and I set the number of count to 2000. But it seems that the maximum number of count is limited to 1000 only. Since...
Are there plans to support date calculations based on CRON expressions in other time zones than local or UTC?