jhanarato / uposatha

Buddhist Moon Days
MIT License
1 stars 1 forks source link

Generate date sequences #4

Closed jhanarato closed 1 year ago

jhanarato commented 1 year ago

Use the configuration in issue #3 to generate the dates:

jhanarato commented 1 year ago

The output of my adjustment finding script:

Gimha season 2016: [15, 15, 14, 15, 15, 15, 15, 15]
Gimha season 2020: [15, 15, 14, 15, 15, 15, 15, 15]
Gimha season 2025: [15, 15, 14, 15, 15, 15, 15, 15]
Gimha season 2030: [15, 15, 14, 15, 15, 15, 15, 15]

So for our icalendar file there are four adjustments. In each case the seventh uposatha of the hot season has changed from 14 days to 15 days.

jhanarato commented 1 year ago

Sequences for half moons:

Normal      [8, 15, 15, 14, 15, 15, 15, 14]
Extra day   [8, 15, 15, 14, 15, 15, 15, 15]
Extra month [8, 15, 15, 14, 15, 15, 15, 14, 15, 15]
jhanarato commented 1 year ago

Sequences for full moons:

Normal      [15, 15, 14, 15, 15, 15, 14, 15]
Extra day   [15, 15, 14, 15, 15, 15, 15, 15]
Extra month [15, 15, 14, 15, 15, 15, 14, 15, 15, 15]
jhanarato commented 1 year ago

Sequences work. Now working on sequence -> date conversion.

jhanarato commented 1 year ago

All good. We can see all the seasons with dates from 2010 to 2030 as expected.