Getting Cron Expression from Later.js

We save schedules as cron expressions in the database. Schedules change on the web page, and for this I use Later.js. Works great for parsing a Cron expression. Now I would like to output the modified schedule to a Cron expression that can be stored in the database.

Is there a "toCronExpression" function in Later.js?

I know that I can read the properties of the schedule object and display them myself, but I was hoping for a built-in function.

+7
javascript cron schedule laterjs
source share
1 answer

There is currently no such function for generating cron expressions in Later.js . All cron-related functionality is related to parsing cron expressions rather than generating them. You can confirm this by looking at all the use of the word cron in the main branch of the Later.js repository on GitHub. Here is the search link:

https://github.com/bunkat/later/search?p=1&q=cron&type=&utf8=%E2%9C%93

+2
source share

All Articles