later icon indicating copy to clipboard operation
later copied to clipboard

[discussion] How do I parse a later schedule into CRON?

Open JackEdwardLyons opened this issue 3 years ago • 1 comments

What would you like to discuss?

I'm wondering how I can convert a later schedule into cron format? For example:

const everyNthDays = later.parse.recur().every(12).dayOfMonth();
const dayOccurs = later.schedule(everyNthDays).next(5);
console.log({ everyNthDays });

// how to convert to cron??

Checklist

  • [x] I have read the documentation.
  • [x] I understand that later can parse a cron expression ...
  • [ ] How do I parse a later schedule to cron?

If it's not possible with laterjs, do you have any recommended libraries that could help?

Thank you

JackEdwardLyons avatar Jan 31 '22 07:01 JackEdwardLyons

@JackEdwardLyons Did you ever find a way to handle this ?

ccollie avatar Apr 15 '24 17:04 ccollie