Simple-Calendar icon indicating copy to clipboard operation
Simple-Calendar copied to clipboard

[Feature Request] Generate holidays dates instead of using ICS files

Open tswistak opened this issue 4 years ago • 0 comments

Hi!

I've encountered that function for adding holidays automatically isn't working well. For example in Poland all holidays ends in 2020. I've seen that you are using ICS files for that with hard-coded holidays - maybe it would be good to change this approach? I was thinking about generating holidays automatically for a given year or period of time.

I don't know if there is something like that for Java/Kotlin (I'm not into this environment), but for example in JS world there is a date-holidays library that does the job of generating holidays without internet connection for nearly 200 countries and even acknowledges differences in holidays between regions in one country (e.g. different states in the USA can have some holidays different). Maybe there is something like this available to use in Android?

If there isn't anything like this for Java/Kotlin, maybe it would be good to take a look how this JS library handles generating dates. They have a lot of YAML files for each country with written down dates of holidays or ways to count holidays (e.g. 1st monday of March or something like easter 60 to annotate 60 days after Easter). They also have ways to count moving holidays that depends on the Moon (like Easter, Arabic holidays etc.) or something different.

I think that this kind of feature would be a good addition to the calendar. It still would be simple (you don't need to cover all countries, can be the same set as there is already), but there wouldn't be a need to change ICS files after few years.

Thanks for a good work!

tswistak avatar Nov 02 '21 17:11 tswistak