Skip to content

Instantly share code, notes, and snippets.

@igneus
Created September 13, 2022 18:08
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/b57179793713ffbfc2fcc45c31a6340e to your computer and use it in GitHub Desktop.
Save igneus/b57179793713ffbfc2fcc45c31a6340e to your computer and use it in GitHub Desktop.
In which years does each feast of the Lord fall on Sunday and is thus celebrated with first Vespers?
# In which years does each feast of the Lord fall on Sunday and is thus celebrated with first Vespers?
require 'calendarium-romanum/cr'
years = 2000 .. 2100
sanctorale = CR::Data::GENERAL_ROMAN_ENGLISH.load
sanctorale
.each_day
.select {|_,celebrations| celebrations.first.rank == CR::Ranks::FEAST_LORD_GENERAL }
.collect {|_,celebrations| celebrations.first }
.each do |celebration|
puts celebration.title
puts \
years
.select {|y| celebration.date.concretize(y).sunday? }
.collect(&:to_s)
.join(', ')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment