Giter Site home page Giter Site logo

Comments (3)

shalomscott avatar shalomscott commented on June 28, 2024 1

Amazing! Both libraries now produce the exact same result, down to the millisecond!

I used the Java zmanim project directly this time so I could get an exact comparison. This is what I got from Java:

ComplexZmanimCalendar cal = new ComplexZmanimCalendar(
        new GeoLocation(
                "Hasmonaim",
                31.93263,
                35.02327,
                255.18,
                TimeZone.getTimeZone("Asia/Jerusalem"))
);

cal.getCalendar().set(2020, Calendar.APRIL, 10);

System.out.println(cal.getCandleLighting().getTime()); // 1586533670912 (Fri Apr 10 2020 18:47:50)

And the JS using the updated kosher-zmanim:

const { ComplexZmanimCalendar, GeoLocation } = require("kosher-zmanim");

const cal = new ComplexZmanimCalendar(
  new GeoLocation("Hashmonaim", 31.93263, 35.02327, 255.18, "Asia/Jerusalem")
);

cal.setDate("2020-04-10");

console.log(cal.getCandleLighting().toJSDate().getTime()); // 1586533670912 (Fri Apr 10 2020 18:47:50)

Awesome stuff 👍

from kosherzmanim.

shalomscott avatar shalomscott commented on June 28, 2024

P.S. I'd love to get involved in solving this issue. I just first wanted to know if you were aware of it.

from kosherzmanim.

BehindTheMath avatar BehindTheMath commented on June 28, 2024

There were several bugs in the last version. Please try again with v0.6.0 and let me know if there is still an issue.

As far as we know, MyZmanim uses their own proprietary calculations, and does not use KosherJava or any of its ports. The author of KosherJava frequently gets complaints that his calculations are different than MyZmanim.

from kosherzmanim.

Related Issues (12)

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.