bchurchill / badi-cal

A javascript library for Badi calendar conversions.
https://bchurchill.github.io/badi-cal/
MIT License
11 stars 4 forks source link

Leap year #3

Closed wayferer closed 9 years ago

wayferer commented 9 years ago

Does badi.js take leap years into account? i.e. if looking for when Naw Ruz is next year is badi.js taking into account that next year is a leap year?

bchurchill commented 9 years ago

Yes it does. These details are burried in the external dependencies that use the algorithms from Meeus. It's not explicit in the badi.js file because most of the rest is taken care of by the built-in javascript dates. You can always double-check the dates using the demo application.

On 05/03/2015 10:31 AM, Abdullah Norozi Iranzad wrote:

Does badi.js take leap years into account? i.e. if looking for when Naw Ruz is next year is badi.js taking into account that next year is a leap year?

— Reply to this email directly or view it on GitHub https://github.com/bchurchill/badi-cal/issues/3.

wayferer commented 9 years ago

Awesome. I just checked and its the same as here http://www.bahaidate.today/table-of-dates/ which I belive is using the Ruby gem. Although I think this site http://calendar.bahaiq.com/173/1 has it wrong then?

bchurchill commented 9 years ago

I think calendar.bahaiq.com has not been updated since the UHJ implemented the Badi calendar, so it's no longer correct.

On 05/03/2015 06:59 PM, Abdullah Norozi Iranzad wrote:

Awesome. I just checked and its the same as here http://www.bahaidate.today/table-of-dates/ which I belive is using the Ruby gem. Although I think this site http://calendar.bahaiq.com/173/1 has it wrong then?

— Reply to this email directly or view it on GitHub https://github.com/bchurchill/badi-cal/issues/3#issuecomment-98566603.

wayferer commented 9 years ago

Oh ok thanks :)