Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shouldn't 0 0 15,L * ? work? #52

Open
kampilan opened this issue Jul 20, 2022 · 7 comments
Open

Shouldn't 0 0 15,L * ? work? #52

kampilan opened this issue Jul 20, 2022 · 7 comments

Comments

@kampilan
Copy link

0 0 15,L * ? should produce the 15th of the month or the Last day of the month. Instead it complains about the L not being a number.

Am I missing something or should this be supported?

Thanks
Jim

@arical
Copy link

arical commented Jul 26, 2022

I came here to post the exact same question. A common pattern for invoices is to run twice per month. On the 15th and the last day.

This library has been amazing so far, but this is making us scramble to find a work around. I was hoping that using 15,31 would work, but it doesn't work for months with less than 31 days.

@kampilan
Copy link
Author

Exactly what I needed it for 15,L invoicing. I hate doing this but NCrontab-Advanced supports this and is less quirky. I was able to swap it out in just a few minutes. Good luck

@arical
Copy link

arical commented Jul 27, 2022

Thanks @kampilan. Good to know! Ideally we'd like to continue using Cronos though as the library itself has great support for timezones, which we are making heavy use of.

@odinserj
Copy link
Member

Yeah, sounds as a great addition. Need to change the grammar first and then make the according changes to the code, it will be much easier (than changing the grammar). Will try to implement this in the near future, but any help with the grammar is highly appreciated!

@arical
Copy link

arical commented Aug 10, 2023

We have customers that would still love this functionality. It's the only bit of functionality we'd still really love to see. Anything we can do to help out? I had a quick look at the grammar code but that's definitely not my forte 😅

@binojvijayakumar
Copy link

any updates on this request?

@anvaravind
Copy link

+1 waiting for this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants