jhanarato / uposatha

Buddhist Moon Days
MIT License
1 stars 1 forks source link

Calender includes holidays #5

Closed jhanarato closed 1 year ago

jhanarato commented 1 year ago

Holidays can be added to the calendar. These include:

jhanarato commented 1 year ago

Visākha Pūjā falls on the 4th or 6th uposatha of the hot season, almost always in May except for 2023-06-03. Edit: Which is this year!

Māgha Pūjā falls on the 6th or 8th uposatha of the cold season, sometimes in Feb, sometimes in March.

jhanarato commented 1 year ago

Vesak dates:

2010-05-28
2011-05-17
2012-06-04
2013-05-24
2014-05-13
2015-06-01
2016-05-20
2017-05-10
2018-05-29
2019-05-18
2020-05-06
2021-05-26
2022-05-15
2023-06-03
2024-05-22
2025-05-11
2026-05-31
2027-05-20
2028-05-08
2029-05-27
2030-05-16
jhanarato commented 1 year ago

Magha Puja dates:

2011-02-18
2012-03-07
2013-02-25
2014-02-14
2015-03-04
2016-02-22
2017-02-11
2018-03-01
2019-02-19
2020-02-08
2021-02-26
2022-02-16
2023-03-06
2024-02-24
2025-02-12
2026-03-03
2027-02-21
2028-02-10
2029-02-27
2030-02-17
jhanarato commented 1 year ago

So somehow we'll have to implement a way of generating Vesak & Magha Puja in our new calendar. The above dates can be used for unit testing.

jhanarato commented 1 year ago

Vesak day is 4th in a normal hot season and 6th in a long hot season.

jhanarato commented 1 year ago

Magha Puja is 6th of cold season or 8th if next season is a long hot season.

jhanarato commented 1 year ago

Pavāraṇā Day dates:

2010-10-23
2011-10-12
2012-10-30
2013-10-19
2014-10-08
2015-10-27
2016-10-16
2017-10-05
2018-10-24
2019-10-13
2020-10-02
2021-10-21
2022-10-10
2023-10-29
2024-10-17
2025-10-07
2026-10-26
2027-10-15
2028-10-03
2029-10-22
2030-10-12
jhanarato commented 1 year ago

Āsāḷha Pūjā dates:

2010-07-26
2011-07-15
2012-08-02
2013-07-22
2014-07-11
2015-07-30
2016-07-19
2017-07-08
2018-07-27
2019-07-16
2020-07-05
2021-07-24
2022-07-13
2023-08-01
2024-07-20
2025-07-10
2026-07-29
2027-07-18
2028-07-06
2029-07-25
2030-07-15
jhanarato commented 1 year ago

This is complete now.