Closed eliheuer closed 5 years ago
It's a little more complicated than this since the Universal House of Justice implemented the Badi calendar (in 2014 I think?). Now the date of Naw Ruz varies between March 20th and March 21st and I don't think the current implementation handles this.
(On the other hand, I think Ayyam-i-Ha might be OK, if the month of 'Ala corresponds to "month" 20, and Ayyam-i-Ha is "month" 19. The source code seems to work this way. Perhaps only better documentation is needed for this.)
I'll try working on this as time permits.
Fixes in the above commit
Today is the first day of Ayyám-i-Há, but when I run the following script:
I get the first day of the 19th month as a result:
Ayyám-i-Há is a period of intercalary days, and the 19th month should start after Ayyám-i-Há. There are 19 months with 19 days, so
19*19=361
, Ayyám-i-Há just fills the gap between 361 days and the total number of days depending on if it is a leap year or not.