Dinesh Dinesh - 1 year ago 591
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.


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


Answer Source

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"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download