-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't get how tachanun works #38
Comments
The function returns an integer that functions as a bitmask. To understand the return values, you can look at them in binary (3 bits):
You can extract values using bitwise AND ( today.tachanun() & 1 // truthy if Tachanun is said at Mincha, falsy otherwise
today.tachanun() & 2 // truthy if Tachanun is said at Shacharit, falsy otherwise
today.tachanun() & 4 // truthy if Tachanun is said by all congregations at the tefilot indicated by the other two bits, falsy otherwise Hope this helps. |
Added a new Hebcal.HDate('1 Tishrei').tachanun_uf() // { shacharit: false, mincha: false, all_congs: false }
new Hebcal.HDate('25 Tishrei').tachanun_uf() // { shacharit: true, mincha: true, all_congs: false }
new Hebcal.HDate('6 Cheshvan').tachanun_uf() // { shacharit: true, mincha: true, all_congs: true }
new Hebcal.HDate().onOrAfter(5).tachanun_uf() // Friday: { shacharit: true, mincha: false, all_congs: true }
new Hebcal.HDate().onOrAfter(6).tachanun_uf() // Shabbat: { shacharit: false, mincha: true, all_congs: true } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
A great library, thanks! I didn't understand how Tachanun works, it seems that it returns different integers than described, or I'm calling it wrong
When I'm trying to get Tachanun for 4th of Tishri, it returns 7, the same is with 8th, but 9th returns 0. Also, Yom Haatzmaut returns 3
Can you please explain how to use this function? Thanks
The text was updated successfully, but these errors were encountered: