Created
June 14, 2019 19:05
-
-
Save igneus/ef597ca13f90d65c586e184f477e1670 to your computer and use it in GitHub Desktop.
In which years does the feast of St. Frances of Rome occur in the Passion Week?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'calendarium-romanum' | |
CR = CalendariumRomanum | |
def passion_week(liturgical_year) | |
easter = CR::Temporale::Dates.easter_sunday liturgical_year | |
((easter - 7) .. (easter - 1)) | |
end | |
frances_of_rome = CR::AbstractDate.new 3, 9 | |
years = (1800..3000) | |
frances_of_rome_in_passion_week = proc do |year| | |
liturgical_year = year - 1 | |
date = frances_of_rome.concretize(year) | |
passion_week(liturgical_year).include? date | |
end | |
p years.select(&frances_of_rome_in_passion_week) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment