module CopticVariableFeasts
Public Class Methods
ascension_feast(greg_year)
click to toggle source
# File lib/coptic_variable_feasts.rb, line 35 def self.ascension_feast(greg_year) easter_date = CopticEaster::calculate_easter_date(greg_year) return easter_date + 39 end
big_fast_start_date(greg_year)
click to toggle source
# File lib/coptic_variable_feasts.rb, line 5 def self.big_fast_start_date(greg_year) CopticEaster::calculate_easter_date(greg_year) - 55 end
jonah_fast_start_date(greg_year)
click to toggle source
# File lib/coptic_variable_feasts.rb, line 9 def self.jonah_fast_start_date(greg_year) big_fast_start_date(greg_year) - 14 end
messengers_fast_duration(greg_year)
click to toggle source
# File lib/coptic_variable_feasts.rb, line 17 def self.messengers_fast_duration(greg_year) # I know it should always end on July 12, but I am doing the calculations to make sure I understand things right easter_date = CopticEaster::calculate_easter_date(greg_year) coptic_month = CopticDate::get_coptic_month(easter_date) coptic_day = CopticDate::get_coptic_day(easter_date) dates_to_add = coptic_month==7? 45:15 (30 - coptic_day) + dates_to_add end
messengers_fast_start_date(greg_year)
click to toggle source
# File lib/coptic_variable_feasts.rb, line 13 def self.messengers_fast_start_date(greg_year) CopticEaster::calculate_easter_date(greg_year) + 50 end
messengers_feast_date(greg_year)
click to toggle source
# File lib/coptic_variable_feasts.rb, line 27 def self.messengers_feast_date(greg_year) messengers_fast_start_date(greg_year) + messengers_fast_duration(greg_year) end
pentecost_feast(greg_year)
click to toggle source
# File lib/coptic_variable_feasts.rb, line 40 def self.pentecost_feast(greg_year) easter_date = CopticEaster::calculate_easter_date(greg_year) return easter_date + 49 end
thomas_sunday(greg_year)
click to toggle source
# File lib/coptic_variable_feasts.rb, line 31 def self.thomas_sunday(greg_year) CopticEaster::calculate_easter_date(greg_year) + 7 end