Git Product home page Git Product logo

Comments (10)

ncb000gt avatar ncb000gt commented on August 26, 2024

Hey,

Yes. I speak patches. :) I would like things to be consistent. Obviously both would break things so I'd upgrade the version and make it clear that there was a break in backwards compatibility. But, I'm ok with this so long as it makes the library more consistent.

from node-cron.

pixelfreak avatar pixelfreak commented on August 26, 2024

Hello,

When is this getting into the code? Currently, it's definitely inconsistent.

Thanks!

from node-cron.

ncb000gt avatar ncb000gt commented on August 26, 2024

I haven't seen a patch for this yet. I'm not sure if anyone is actively working on it.

from node-cron.

danhbear avatar danhbear commented on August 26, 2024

I can pick this up again at some point. @pixelfreak, are you more interested in the 5-digit crontime syntax or the day-of-week inconsistency?

from node-cron.

pixelfreak avatar pixelfreak commented on August 26, 2024

More interested in the day-of-week inconsistency. Thanks!

from node-cron.

pixelfreak avatar pixelfreak commented on August 26, 2024

Actually, I am curious why there exists two different cron format and which is better. For example, the linux cron we are all familiar with can't do seconds interval, but this one can. So maybe it's better to keep it that way?

from node-cron.

danhbear avatar danhbear commented on August 26, 2024

Since linux cron is the standard, personally I think node-cron should be consistent with its syntax/functionality. This would mean changing day-of-week to be consistent. Since the seconds interval doesn't contradict any standard cron syntax, it should just be an optional extended syntax (only if 6 digits are included). Will prepare the patch and see if people need backwards compatibility.

from node-cron.

ncb000gt avatar ncb000gt commented on August 26, 2024

Sounds good. I'll review it in a separate branch anyway before including it.
On Jul 23, 2012 10:05 PM, "Daniel Bear" <
[email protected]>
wrote:

Since linux cron is the standard, personally I think node-cron should be
consistent with its syntax/functionality. This would mean changing
day-of-week to be consistent. Since the seconds interval doesn't contradict
any standard cron syntax, it should just be an optional extended syntax
(only if 6 digits are included). Will prepare the patch and see if people
need backwards compatibility.


Reply to this email directly or view it on GitHub:
https://github.com/ncb000gt/node-cron/issues/36#issuecomment-7196981

from node-cron.

danhbear avatar danhbear commented on August 26, 2024

Alrighty, pull request up at https://github.com/ncb000gt/node-cron/pull/41. There are some comments in there. Let me know what you think.

from node-cron.

ncb000gt avatar ncb000gt commented on August 26, 2024

Completed with GH-41.

from node-cron.

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.