holidays/data/de.yaml
2007-11-29 20:05:17 +00:00

80 lines
1.8 KiB
YAML

# German holiday definitions for the Ruby Holiday gem.
#
# Updated: 2008-11-29.
# Sources:
# - http://en.wikipedia.org/wiki/Holidays_in_Germany
# - http://www.timeanddate.com/calendar/index.html?country=8
# - http://www.germany.info/relaunch/welcome/travel/holidays.html
---
months:
0:
- name: Karfreitag
regions: [de]
function: easter(year)-2
- name: Ostern
regions: [de]
function: easter(year)
type: informal
- name: Ostermontag
regions: [de]
function: easter(year)+1
- name: Christi Himmelfahrt
regions: [de]
function: easter(year)+39
- name: Pfingstmontag
regions: [de]
function: easter(year)+50
- name: Fronleichnam
regions: [de_bw, de_by, de_he, de_nw, de_rp, de_sl, de_sn, de_th]
function: easter(year)+60
1:
- name: Neujahrstag
regions: [de]
mday: 1
- name: Heilige Drei Könige
regions: [de_bw, de_by]
mday: 6
5:
- name: Tag der Arbeit
regions: [de]
mday: 1
- name: Victoire 1945
regions: [de]
mday: 8
8:
- name: Mariä Himmelfahrt
regions: [de_by, de_sl]
mday: 15
10:
- name: Tag der Deutschen Einheit
regions: [de]
mday: 3
- name: Reformationstag
regions: [de_bb, de_mv, de_sn, de_st, de_th]
mday: 31
11:
- name: Allerheiligen
regions: [de_bw, de_by, de_nw, de_rp, de_sl]
mday: 1
- name: Buß- und Bettag
regions: [de_by, de_sn]
function: de_buss_und_bettag(year)
12:
- name: 1. Weihnachtstag
regions: [de]
mday: 25
- name: 2. Weihnachtstag
regions: [de]
mday: 26
methods:
de_buss_und_bettag: |
# Germany: Wednesday before November 23
def self.de_buss_und_bettag(year)
date = Date.civil(year,11,23)
if date.wday > 3
date -= (date.wday - 3)
else
date -= (date.wday + 4)
end
date
end