Skip to content

Instantly share code, notes, and snippets.

@igneus
Created June 25, 2022 14:33
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/90a27b77467b0709bb64b7ac9165d773 to your computer and use it in GitHub Desktop.
Save igneus/90a27b77467b0709bb64b7ac9165d773 to your computer and use it in GitHub Desktop.
Occurrence of Sacred Heart with another solemnity
# In which years Sacred Heart occurs with another solemnity and
# https://github.com/igneus/calendarium-romanum/issues/80
# will hit again?
require 'calendarium-romanum/cr'
sanctorale = CR::Data::GENERAL_ROMAN_ENGLISH.load
(2020..2200).each do |liturgical_year|
date = CR::Temporale::Dates.sacred_heart liturgical_year
c = sanctorale[date]
next unless c.first&.solemnity?
puts "#{date}: #{c.first.symbol}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment