holidays / definitions

Holiday definition files. You deserve a holiday!
Other
111 stars 134 forks source link

Discuss TR holidays #55

Open seyyah opened 7 years ago

seyyah commented 7 years ago

Thanks to @spaceneedle2019 for TR holidays contribution. I think that TR holidays may be calculated dynamicly. Hijri GEM (4) may help us. The GEM convert hijri to geogerian vice versa.

Ramadan and Sacrifice Feast has a pattern [1,2,3]

So my idea is

# REFACTOR
begin_of_ramadan_feast = {
  '2017' => Hijri::Date.new(1438, 10, 1).to_greo,
  ...
}

# OLD
begin_of_ramadan_feast = {
  '2017' => Date.civil(2017, 6, 25),
  ...
}

But Hijri GEM [4] have a bug [5]. After fixed, this GEM will be very helpful.

References

  1. http://www.islamicity.org/hijri-gregorian-converter/
  2. http://www.islamweb.net/emainpage/index.php?page=dateconverter
  3. http://www2.diyanet.gov.tr/DinHizmetleriGenelMudurlugu/Sayfalar/2017DiniG%C3%BCnlerListesi.aspx
  4. https://github.com/ecleel/hijri
  5. https://github.com/ecleel/hijri/issues/4
ttwo32 commented 7 years ago

Hi @seyyah !! Thank you for a suggestion. I like your idea that TR holidays may be calculated dynamically.

@spaceneedle2019 and @ppeble

What's your opinion on this issue?

ppeble commented 7 years ago

Oooh! I like this idea. I like the idea of setting up the Julian/Gregorian/Hirji. That said, I'm really going to have to think about this one...this is a bit similar to how I understand holidays in China (and other lunar calendars) work. It's a bit different than how we do things in places like the US/Canada, which is where this was written. So I need to read up and then think about how we will implement this.

Thank you for the suggestion! Keep bothering us, we are definitely thinking about it and would love to incorporate this idea. 👍

spaceneedle2019 commented 7 years ago

@seyyah: The transformation from the Hijri into Gregorian calendar is a good thing. 👍

@ppeble: Keep in mind the Hebrew calendar, too. :)