xrutayisire / react-js-cron

A React cron editor built with antd
https://xrutayisire.github.io/react-js-cron/?path=/docs/reactjs-cron--demo
MIT License
238 stars 105 forks source link

Feature to add seconds #23

Closed carlosporta closed 2 years ago

carlosporta commented 2 years ago

Hello,

Our cron jobs run on a period of less than a minute. Is it possible to add seconds to this library?

Great job!

xrutayisire commented 2 years ago

Hello,

Thanks for the issue!

To simply answer the question, it's because I needed and decided to only support UNIX cron syntax and not Quartz cron syntax. cf: https://flylib.com/books/en/2.65.1/the_cron_expression_format.html

Seconds is not standard and it's part of the Quartz cron syntax. It could be an improvement of this library if it doesn't add too much complicated code to maintain.

As I don't need to support Quartz syntax, I may not develop this right away so feel free for a PR 🙂