Module: CopticVariableFeasts

Defined in:
lib/coptic_variable_feasts.rb

Class Method Summary collapse

Class Method Details

.big_fast_start_date(greg_year) ⇒ Object



5
6
7
# 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) ⇒ Object



9
10
11
# 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) ⇒ Object



17
18
19
20
21
22
23
24
25
# 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) ⇒ Object



13
14
15
# 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) ⇒ Object



27
28
29
# 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