sojinantony01 / react-cron-generator

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

Support for 6 character cron strings #16

Closed WilliamPriorielloGarda closed 4 years ago

WilliamPriorielloGarda commented 4 years ago

From what I can tell, only 7 character cron strings are supported as of this time. If I set the value to a 6 character cron string, the tool seems to default to the picture below image

It also changes the cron string to an "every one minute" 7-character representation (0 0 00 1 1/1 ? *).

An example of a 6 character cron string that I am using: 0 15 1 ?

sojinantony01 commented 4 years ago

Added 6 char cron support

Thanks for reporting, check v1.2.5

tamirCodefuel commented 1 year ago

Hi guys,

How do I change the output to a 6 characters cron expression?

sojinantony01 commented 1 year ago

Currently, the output is always 7 char cron
the last * in cron expression refers to year which 6 char cron doesn't have

Please cut the last char from cron

sojinantony01 commented 1 year ago

Currently, the output is always 7 char cron
the last * in cron expression refers to year which 6 char cron doesn't have

Please cut the last char from cron

tamirCodefuel commented 1 year ago

Thanks for your reply, My question had came from what is seems as a non standard cron expression- when I generate a cron expression like every day at 6 I get - 0 0 06 1/1 ? When our system and cron guru expect- 0 6 * I thought that there might be a prop I can set it to our pattern.