Dinesh Dinesh - 3 months ago 111
Javascript Question

JavaScript API that converts cron expressions into human readable strings

I used below Javascript API to create Quartz compatible UI to provide cron expression to server side quartz sevices.

https://github.com/felixruponen/jquery-cron

Do we have any API , which we can use to convert cron expressions into human readable strings in Java Script.

Thanks

Answer

I recently ported the Quartz compatible cron-expression-descriptor from C# to JavaScript and named it cRonstrue. This JavaScript library is able to convert a Quartz cron expression into a human readable string like this:

cronstrue.toString("0 23 ? * MON-FRI");
> "At 11:00 PM, Monday through Friday"
Comments