Module: Holidays::Definition::CustomMethods::IS

Defined in:
lib/holidays/definition/custom_methods/is.rb

Overview

is custom holiday calculations, ported verbatim from the methods: block in definitions/is.yaml.

Class Method Summary collapse

Class Method Details

.is_sumardagurinn_fyrsti(year) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/holidays/definition/custom_methods/is.rb', line 10

def is_sumardagurinn_fyrsti(year)
  date = Date.civil(year,4,18)
  if date.wday < 4
    date += (4 - date.wday)
  else
    date += (11 - date.wday)
  end
  date
end