-
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
Get next month/year #65
Comments
Untested: |
This doesn't work in case you want to add 1 month, you are in Adar and it's not leap year. In this case it reverts it back to Adar |
|
Tested and this works: let hd = new Hebcal.HDate();
for (let i = 0; i < 3; i++) {
hd = new Hebcal.HDate(hd.abs() + hd.daysInMonth());
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any easy way to get next month/year? Let say I have an HDate and I want to add 3 months. How would I do that?
The text was updated successfully, but these errors were encountered: