Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@igneus
Created June 14, 2019 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igneus/ef597ca13f90d65c586e184f477e1670 to your computer and use it in GitHub Desktop.
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?
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