Liturgical-Calendar / LiturgicalCalendarAPI

A PHP script / API endpoint that will generate the Roman Catholic liturgical calendar for any given year, calculating the mobile festivities and the precedence of solemnities, feasts, memorials...
Apache License 2.0
39 stars 11 forks source link

Allow to request Liturgical Year rather than only civil year #186

Closed JohnRDOrazio closed 6 months ago

JohnRDOrazio commented 6 months ago

Seeing that the purpose of this tool is to generate the Liturgical calendar, it should be able to generate a full liturgical year, beginning from Advent of one year and concluding at the end of the 34th Sunday in Ordinary Time of the following year.

The question is, how this should be handled. Should we allow requesting a year range such as 2023-2024?

Or perhaps, we should have an option such as calendarType with possible values of LITURGICAL or CIVIL, where a value of LITURGICAL will be the default, and will start from the First Sunday of Advent of the preceding year and finish with Saturday of the 34th week of Ordinary Time in the current requested year.

I think this second solution is more feasible.

We should also do some checks for the overlapping parts between civil years: between December 31st of the preceding year and January 1st of the current year, so as to make sure we get all the rankings and festivities correct between vigil Masses and whatnot.

JohnRDOrazio commented 6 months ago

Fixed in commits: