holidays/data/is.yaml

114 lines
2.7 KiB
YAML
Raw Normal View History

2007-11-23 22:10:21 +01:00
# Icelandic holiday definitions for the Ruby Holiday gem.
2007-11-23 05:28:15 +01:00
#
2007-11-23 22:10:21 +01:00
# Updated: 2008-11-23.
2007-11-23 05:28:15 +01:00
# Sources:
2007-11-23 22:10:21 +01:00
# - http://www.simnet.is/gardarj/folk/days.htm#days
2007-11-23 05:28:15 +01:00
# - http://www.iceland.is/history-and-culture/Traditions/IcelandicHolidays/
# - http://en.wikipedia.org/wiki/Public_holidays_in_Iceland
---
months:
0:
2007-11-23 22:10:21 +01:00
- name: Bolludagur
2007-11-23 05:28:15 +01:00
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)-48 }
2007-11-23 22:10:21 +01:00
- name: Sprengidagur
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)-47 }
2007-11-23 22:10:21 +01:00
- name: Öskudagur
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)-46 }
2007-11-23 22:10:21 +01:00
- name: Pálmasunnudagur
2007-11-23 05:28:15 +01:00
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)-7 }
2007-11-23 22:10:21 +01:00
- name: Skírdagur
2007-11-23 05:28:15 +01:00
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)-3 }
2007-11-23 22:10:21 +01:00
- name: Föstudaginn langi
2007-11-23 05:28:15 +01:00
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)-2 }
2007-11-23 22:10:21 +01:00
- name: Páskadagur
2007-11-23 05:28:15 +01:00
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year) }
2007-11-23 22:10:21 +01:00
- name: Annar í páskum
2007-11-23 05:28:15 +01:00
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)+1 }
2007-11-23 05:28:15 +01:00
- name: Store Bededag
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)+26 }
2007-11-23 05:28:15 +01:00
- name: Kristi Himmelfartsdag
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)+40 }
2007-11-23 05:28:15 +01:00
- name: Kristi Himmelfartsdag
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)+40 }
2007-11-23 05:28:15 +01:00
- name: 2. Pinsedag
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)+49 }
2007-11-23 05:28:15 +01:00
- name: Pinsedag
regions: [is]
2007-11-25 00:22:10 +01:00
function: lambda { |year| Holidays.easter(year)+50 }
2007-11-23 05:28:15 +01:00
1:
- name: Nýársdagur
regions: [is]
mday: 1
- name: Þrettándinn
regions: [is]
mday: 6
- name: Bóndadagur
regions: [is]
mday: 19
type: informal
2:
- name: Konudagur
regions: [is]
mday: 18
type: informal
5:
- name: Verkalýðsdagurinn
regions: [is]
mday: 1
- name: Mæðradagurinn
regions: [is]
mday: 13
2007-11-23 22:10:21 +01:00
5:
- name: Sjómannadagurinn
regions: [is]
mday: 3
type: informal
- name: Lýðveldisdagurinn
regions: [is]
mday: 17
8:
- name: Frídagur verslunarmanna
regions: [is]
week: 1
wday: 1
11:
- name: Dagur íslenskrar tungu
regions: [is]
mday: 16
12:
- name: Jól
regions: [is]
mday: 24
- name: Jól
regions: [is]
mday: 25
- name: Jól
regions: [is]
mday: 26
- name: Gamlárskvöld
regions: [is]
mday: 31
methods:
is_sumardagurinn_fyrsti: |
# Iceland: first day of summer (Thursday after 18 April)
def self.is_sumardagurinn_fyrsti(year)
date = Date.civil(year,4,18)
if date.wday < 4
date += (4 - date.wday)
else date
date += (11 - date.wday)
end
date
end