sojinantony01 / react-cron-generator

Simple react component to generate cron expressions
MIT License
78 stars 62 forks source link

Cron expression in unix based format #36

Closed jayaryan closed 2 years ago

jayaryan commented 2 years ago

Cron expression output is basically a quartz style format having 7 no of fields. Is there any way to get it in a UNIX based style ( 5 or 6 no of field)

sojinantony01 commented 2 years ago

Hi @jayaryan

Now package support 6 field cron expression inputs but when onchange only give 7 field expression you can slice last value to convert to 6 field expression

jayaryan commented 2 years ago

Basically by the slicing way every 5 min (0 0/5 ? ) will become (0 0/5 ?) and 0 0/5 ? will create a problem because of '?' i think.

SojinAntony commented 2 years ago

No it will not