Open ricardonogues opened 6 years ago
Hi @ricardonogues!
I needed the same functionality so I came up with this:
var time = date.toTimeString().split(' ')[0]; // get hour and minute (there are better ways to do this)
var sched = later.parse.recur().on(time).time();
var dayOfWeek = later.dayOfWeek.val(date); // NOTE this line might mess up your `date` instance
return later.schedule(sched.on(0).dayOfWeekCount().on(dayOfWeek).dayOfWeek());
Was trying to do the same with Renovate Bot:
before 3am on the first weekday of the month
And it seems not to be supported, yet every weekday
is supported.
Is it possible to generate a recurrence like 'every last Friday of the month'?