Closed wideocean closed 6 years ago
Sorry, I had a misunderstanding of the code usage.
You need to look which hierarchy you want and then use the corresponding country code.
If I want "Hessen", I can call .isHoliday(c, "he")
.
I was too confused by the code usage example with New York and New York City.
Can be closed.
As of now, I'm using the latest version (0.5.2).
Consider the following method which checks if the given date is a holiday:
The method is working fine for national-wide holidays (like New Year's etc.). However, if I try to check for holidays for let's say "Hessen" ("he"), then it seems to not working. I use the provided XML file and for "Hessen", there is an entry for the Christian holiday "CORPUS CHRISTI" which is the 31st May in 2018.
It returns false. Is
.isHoliday(c, "de", "he")
the correct usage here? How is the correct usage?I appreciate every answer. Thank you.