Browse files

Added Augsburg Peace Day as optional local holiday

Requested and patch kindly provided by Marc André Selig.

Interestingly, Augsburg Peace Day makes Augsburg the german city
with the highest number of official holidays. :-)
  • Loading branch information...
1 parent 9272ae4 commit fa251d9e0779ec918f6253ab7ad3f1867570d7cf @mschmitt committed Apr 17, 2010
Showing with 12 additions and 3 deletions.
  1. +4 −0 Changes
  2. +7 −3 DE.pm
  3. +1 −0 example/feiertage.pl
View
4 Changes
@@ -24,3 +24,7 @@ v.1.1 Thu Aug 27 20:02:32 CEST 2009
v1.2 Sun Nov 8 08:22:34 CET 2009
- Fixed the fix for Tag der deutschen Einheit from previous version.
+
+v1.3 Sat Apr 17 18:34:33 2010 +0200
+ - Added Augsburg Peace Day as optional local holiday.
+ Requested and patch kindly provided by Marc André Selig.
View
10 DE.pm
@@ -14,7 +14,7 @@ require Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(holidays);
-our $VERSION = '1.2';
+our $VERSION = '1.3';
sub holidays{
my %parameters = (
@@ -43,6 +43,7 @@ sub holidays{
# fron = Fronleichnam
# 1mai = Maifeiertag
# 17ju = Tag der deutschen Einheit (>= 1954, <= 1990)
+ # frie = Augsburger Friedensfest
# mari = Mariae Himmelfahrt
# 3okt = Tag der deutschen Einheit (>= 1990)
# refo = Reformationstag
@@ -152,6 +153,9 @@ sub holidays{
$holiday{'wei1'} = _date2timestamp($year, 12, 25);
$holiday{'wei2'} = _date2timestamp($year, 12, 26);
+ # Augsburger Friedensfest
+ $holiday{'frie'} = _date2timestamp($year, 8, 8);
+
# Assumption day Aug 15
$holiday{'mari'} = _date2timestamp($year, 8, 15);
@@ -341,6 +345,7 @@ The module knows about the following holidays:
fron Fronleichnam Corpus christi
1mai Maifeiertag Labor day, German style
17ju Tag der deutschen Einheit Reunion day (>= 1954, <= 1990)
+ frie Augsburger Friedensfest Augsburg peace day
mari Mariae Himmelfahrt Assumption day
3okt Tag der deutschen Einheit Reunion day (>= 1990)
refo Reformationstag Reformation day
@@ -366,8 +371,7 @@ dates in any format you desire:
my $feiertage_ref = holidays(FORMAT=>"%d.%m.%Y");
-This might be considered "hard to use" by some people, so here are a few
-examples to get you started:
+Here are a few examples to get you started:
FORMAT=>"%d.%m.%Y" 25.12.2001
FORMAT=>"%Y%m%d" 20011225
View
1 example/feiertage.pl
@@ -22,6 +22,7 @@
'1mai' => 'Maifeiertag',
'17ju' => 'Tag der deutschen Einheit (1954-1990)',
'mari' => 'Mariae Himmelfahrt',
+ 'frie' => 'Augsburger Friedensfest (regional)',
'3okt' => 'Tag der deutschen Einheit',
'refo' => 'Reformationstag',
'alhe' => 'Allerheiligen',

0 comments on commit fa251d9

Please sign in to comment.