Git Product home page Git Product logo

Comments (7)

TheCodedSelf avatar TheCodedSelf commented on August 18, 2024

Hi @cliftonmyers, the ? operator is not supported, as such 0 8 ? * * * will fail.

Additionally, please use the format specified on the Cron Wikipedia page.

30 9 * * MON,WED,FRI * (note I have removed the ? from your example) should be 30 9 * * 1,3,5 *, which will run at 09:30AM every Monday, Wednesday, and Friday.

from swiftcron.

cliftonmyers avatar cliftonmyers commented on August 18, 2024

Okay so i will need to do some hacks on the cronExpressions i am receiving in order to be parsed correctly using your library.

What about the operator "/", it is not supported as well right?
what is the alternative to it, if i want to replace it with something that actually works?

from swiftcron.

TheCodedSelf avatar TheCodedSelf commented on August 18, 2024

You'll just need to do some find and replace before creating a CronExpression with the expressions you're receiving. Alternatively feel free to implement the features you'd want, I'd welcome the contribution.

from swiftcron.

cliftonmyers avatar cliftonmyers commented on August 18, 2024

Actually, i searched many pods parsing crons, but yours was the best, others were beginners.

I thought that it would cover all the formats, but surprisingly it is not.

When i have time i can add support to additional features, but currently i m tight on my deadline, and the "/" will be a blocker for me.

Can you find a way to help implementing it soon, and i promise i will be contributing in the future with making this library better.

from swiftcron.

TheCodedSelf avatar TheCodedSelf commented on August 18, 2024

There is currently a ticket open for the / operator.

I don't have the capacity to work on this myself at present and I'd most likely miss your deadline. What I could do is guide you through the code base and the best way of implementing it. If you're willing to give it a bash, just let me know.

from swiftcron.

cliftonmyers avatar cliftonmyers commented on August 18, 2024

so basically, you are not using the quartz variation for the cronExpression.

Can you tell me which variation you are using, maybe if i get another response with this variation, it could work better.

from swiftcron.

TheCodedSelf avatar TheCodedSelf commented on August 18, 2024

The library is using the standard format specified on the Cron Wikipedia page.

Implementing the special operators from the Quartz variation is desired, but not yet complete.

from swiftcron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.