Documentation ¶
Index ¶
- func SetDefaultTimeFormat(timeformat string)
- func SetDefaultTimeZone(timezone *time.Location)
- type ByDate
- type Feiertag
- func Allerheiligen(x int) Feiertag
- func Allerseelen(x int) Feiertag
- func Aschermittwoch(x int) Feiertag
- func BeginnSommerzeit(x int) Feiertag
- func BeginnWinterzeit(x int) Feiertag
- func Blackfriday(x int) Feiertag
- func BußUndBettag(x int) Feiertag
- func ChristiHimmelfahrt(x int) Feiertag
- func Christtag(x int) Feiertag
- func Dreifaltigkeitssonntag(x int) Feiertag
- func DritterAdvent(x int) Feiertag
- func Epiphanias(x int) Feiertag
- func Erntedankfest(x int) Feiertag
- func ErsterAdvent(x int) Feiertag
- func Fastnacht(x int) Feiertag
- func Florianitag(x int) Feiertag
- func Fronleichnam(x int) Feiertag
- func Gründonnerstag(x int) Feiertag
- func Halloween(x int) Feiertag
- func Handtuchtag(x int) Feiertag
- func Heiligabend(x int) Feiertag
- func HeiligeDreiKönige(x int) Feiertag
- func InternationalerFrauentag(x int) Feiertag
- func InternationalerKindertag(x int) Feiertag
- func InternationalerTagDerPressefreiheit(x int) Feiertag
- func InternationalerTagDesGedenkensAnDieOpferDesHolocaust(x int) Feiertag
- func Josefitag(x int) Feiertag
- func Karfreitag(x int) Feiertag
- func Karnevalsbeginn(x int) Feiertag
- func Karnevalssonntag(x int) Feiertag
- func Leopolditag(x int) Feiertag
- func MariäEmpfängnis(x int) Feiertag
- func MariäHimmelfahrt(x int) Feiertag
- func MariäUnbefleckteEmpfängnis(x int) Feiertag
- func Martinstag(x int) Feiertag
- func Muttertag(x int) Feiertag
- func Nationalfeiertag(x int) Feiertag
- func Neujahr(x int) Feiertag
- func Nikolaus(x int) Feiertag
- func Ostermontag(x int) Feiertag
- func Ostern(x int) Feiertag
- func Palmsonntag(x int) Feiertag
- func Pfingsten(x int) Feiertag
- func Pfingstmontag(x int) Feiertag
- func Reformationstag(x int) Feiertag
- func Rosenmontag(x int) Feiertag
- func Rupertitag(x int) Feiertag
- func Silvester(x int) Feiertag
- func Staatsfeiertag(x int) Feiertag
- func Stefanitag(x int) Feiertag
- func SystemAdministratorAppreciationDay(x int) Feiertag
- func TagDerArbeit(x int) Feiertag
- func TagDerBefreiung(x int) Feiertag
- func TagDerDeutschenEinheit(x int) Feiertag
- func TagDerVolksabstimmung(x int) Feiertag
- func TagDesMeeres(x int) Feiertag
- func Thanksgiving(x int) Feiertag
- func Totensonntag(x int) Feiertag
- func TowelDay(x int) Feiertag
- func Valentinstag(x int) Feiertag
- func Vatertag(x int) Feiertag
- func VierterAdvent(x int) Feiertag
- func Volkstrauertag(x int) Feiertag
- func Walpurgisnacht(x int) Feiertag
- func Weiberfastnacht(x int) Feiertag
- func Weihnachten(x int) Feiertag
- func Weltflüchtlingstag(x int) Feiertag
- func Weltkindertag(x int) Feiertag
- func ZweiterAdvent(x int) Feiertag
- func ZweiterWeihnachtsfeiertag(x int) Feiertag
- type Region
- func All(y int, inklSonntage ...bool) Region
- func BadenWürttemberg(y int, inklSonntage ...bool) Region
- func Bayern(y int, inklSonntage ...bool) Region
- func Berlin(y int, inklSonntage ...bool) Region
- func Brandenburg(y int, inklSonntage ...bool) Region
- func Bremen(y int, inklSonntage ...bool) Region
- func Burgenland(y int, inklSonntage ...bool) Region
- func Deutschland(y int, inklSonntage ...bool) Region
- func GetAllRegions(year int, inklSonntag bool, country ...string) (regions []Region)
- func Hamburg(y int, inklSonntage ...bool) Region
- func Hessen(y int, inklSonntage ...bool) Region
- func Kärnten(y int, inklSonntage ...bool) Region
- func MecklenburgVorpommern(y int, inklSonntage ...bool) Region
- func Niedersachsen(y int, inklSonntage ...bool) Region
- func Niederösterreich(y int, inklSonntage ...bool) Region
- func NordrheinWestfalen(y int, inklSonntage ...bool) Region
- func Oberösterreich(y int, inklSonntage ...bool) Region
- func RheinlandPfalz(y int, inklSonntage ...bool) Region
- func Saarland(y int, inklSonntage ...bool) Region
- func Sachsen(y int, inklSonntage ...bool) Region
- func SachsenAnhalt(y int, inklSonntage ...bool) Region
- func Salzburg(y int, inklSonntage ...bool) Region
- func SchleswigHolstein(y int, inklSonntage ...bool) Region
- func Steiermark(y int, inklSonntage ...bool) Region
- func Thüringen(y int, inklSonntage ...bool) Region
- func Tirol(y int, inklSonntage ...bool) Region
- func Vorarlberg(y int, inklSonntage ...bool) Region
- func Wien(y int, inklSonntage ...bool) Region
- func Österreich(y int, inklSonntage ...bool) Region
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultTimeFormat ¶ added in v1.7.0
func SetDefaultTimeFormat(timeformat string)
SetDefaultTimeFormat offers the possibility to change the default format for the ToString function. It defaults to "02.01.2006" The timezone is set at the creation time of the Feiertage object!
func SetDefaultTimeZone ¶ added in v1.7.0
SetDefaultTimeZone lets you set the timezone of the Feiertag functions. Default ist UTC.
Types ¶
type ByDate ¶
type ByDate []Feiertag
ByDate is the comparator object of Feiertag to be able to sort a list of Feiertage
type Feiertag ¶
Feiertag is an extented Time object. You may use it like any Time, but it offers an additional attribute carrying the name of the Feiertag.
func Allerheiligen ¶
Allerheiligen is All Saints' Day or Allhallows, a fixed date
func Allerseelen ¶
Allerseelen is All Souls' Day, the day after All Saints' Day,
func Aschermittwoch ¶
Aschermittwoch is Ash Wednesday, 46 days before Easter.
func BeginnSommerzeit ¶
BeginnSommerzeit is the start of daylight saving time. Last Sunday of March.
func BeginnWinterzeit ¶
BeginnWinterzeit is the end of daylight saving time. Last Sunday of October.
func BußUndBettag ¶
BußUndBettag is Penance Day, 11 days before the first Sunday in Advent
func ChristiHimmelfahrt ¶
ChristiHimmelfahrt is Ascension Day, 39 days after Easter, therefore always a Thursday.
func Dreifaltigkeitssonntag ¶
Dreifaltigkeitssonntag is Trinity Sunday, the Sunday after Pentecost
func Erntedankfest ¶
Erntedankfest is Thanksgiving or Harvest Festival, the first Sunday of October. The german Erntedankfest is not the same than the US Thanksgiving.
func Fronleichnam ¶
Fronleichnam is Corpus Christi, 60 days after Eastern, therefore always a Thursday.
func Gründonnerstag ¶
Gründonnerstag is Holy Thursday or Maundy Thursday, the last Thursday before Eastern
func Handtuchtag ¶ added in v1.9.0
Handtuchtag is Towel Day, May 25. It is celebrated as a tribute to the author Douglas Adams by his fans.
func Heiligabend ¶
Heiligabend is Christmas Eve, the last day before Christmas.
func HeiligeDreiKönige ¶
HeiligeDreiKönige is another name for Epiphany, a fixed date.
func InternationalerFrauentag ¶ added in v1.6.1
InternationalerFrauentag is International Women's Day, a fixed date.
func InternationalerKindertag ¶ added in v1.6.1
InternationalerKindertag is special to Germany and Austrian and isnot the same as Weltkindertag (World Children's Day), a fixed date.
func InternationalerTagDerPressefreiheit ¶ added in v1.6.1
InternationalerTagDerPressefreiheit is World Press Freedom Day, a fixed date.
func InternationalerTagDesGedenkensAnDieOpferDesHolocaust ¶ added in v1.6.1
InternationalerTagDesGedenkensAnDieOpferDesHolocaust is (International Holocaust Remembrance Day, a fixed date.
func Karfreitag ¶
Karfreitag is Good Friday, the last Friday before Easter
func Karnevalsbeginn ¶
Karnevalsbeginn is the beginning of carnival, a fixed date.
func Karnevalssonntag ¶
Karnevalssonntag is the sunday of carnival, 49 days before Easter.
func MariäEmpfängnis ¶
MariäEmpfängnis has a shorter name for MariäUnbefleckteEmpfängnis in Austria.
func MariäHimmelfahrt ¶
MariäHimmelfahrt is Assumption Day, a fixed date.
func MariäUnbefleckteEmpfängnis ¶
MariäUnbefleckteEmpfängnis is Day of Immaculate Conception, a fixed date.
func Martinstag ¶
Martinstag or Skt. Martin is Martinmas, a fixed date
func Nationalfeiertag ¶
Nationalfeiertag is the Austrian national day, a fixed date.
func Ostermontag ¶
Ostermontag is Easter Monday, the Monday after Easter.
func Palmsonntag ¶
Palmsonntag is Palm Sunday , the last Sunday before Easter
func Pfingstmontag ¶
Pfingstmontag is Whit Monday, the monday after Pentecost.
func Reformationstag ¶
Reformationstag is Reformation Day, a fixed date.
func Rosenmontag ¶
Rosenmontag is the monday of carnival, 48 days before Easter.
func Staatsfeiertag ¶
Staatsfeiertag is May 1st in Austria, a fixed date.
func SystemAdministratorAppreciationDay ¶ added in v1.9.0
SystemAdministratorAppreciationDay is the last Fridy in July
func TagDerBefreiung ¶
TagDerBefreiung is Victory in Europe Day, a fixed date.
func TagDerDeutschenEinheit ¶
TagDerDeutschenEinheit is German Unity Day, a fixed date.
func TagDerVolksabstimmung ¶
TagDerVolksabstimmung is Referendum Day in Carinthia, a fixed date.
func TagDesMeeres ¶ added in v1.6.1
TagDesMeeres is World Oceans Day, a fixed date.
func Thanksgiving ¶
Thanksgiving in the US, the fourth Thursday of November.
func Totensonntag ¶
Totensonntag is Sunday in commemoration of the dead, the last Sunday before the fourth Sunday in Advent
func TowelDay ¶ added in v1.9.0
TowelDay is, May 25. It is celebrated as a tribute to the author Douglas Adams by his fans.
func Valentinstag ¶
Valentinstag is Valentine's Day, a fixed date.
func Vatertag ¶
Vatertag is Father's Day, same day a Ascension Day, 39 days after Easter, therefore always a Thursday.
func VierterAdvent ¶
VierterAdvent is the fourth Sunday in Advent
func Volkstrauertag ¶
Volkstrauertag is Remembrance Sunday, the second sunday before the first Sunday in Advent
func Walpurgisnacht ¶
Walpurgisnacht is Walpurgis Night, a fixed date.
func Weiberfastnacht ¶
Weiberfastnacht is a part of carnival, 52 days before Easter.
func Weltflüchtlingstag ¶ added in v1.6.1
Weltflüchtlingstag is World Refugee Day, a fixed date.
func Weltkindertag ¶ added in v1.6.1
Weltkindertag is World Children's Day, a fixed date.
func ZweiterAdvent ¶
ZweiterAdvent is the second Sunday in Advent
func ZweiterWeihnachtsfeiertag ¶
ZweiterWeihnachtsfeiertag is day after Christmas, a fixed date
type Region ¶
Region represents a Federal State of Germany or Austria (Bundesland). Some public holidays are common throughout the whole country, while others depend on the Bundesland. Short names of Austrian states are as suggested in ÖNORM A 1080.
func All ¶
All returns a Region object holding all public holidays/feast days known to this program. Not all of them are public holidays (basically 'work free' days).
func BadenWürttemberg ¶
BadenWürttemberg returns a Region object holding all public holidays in the state Baden-Württemberg
func Brandenburg ¶
Brandenburg returns a Region object holding all public holidays in the state Brandenburg
func Burgenland ¶
Burgenland returns a Region object holding all public holidays in the state of Burgenland.
func Deutschland ¶
Deutschland returns a Region object holding all public holidays that are Common in Germany
func GetAllRegions ¶ added in v1.8.0
GetAllRegions returns a list of all regions available. These may be filtered by providing the country ("de"|"at"|empty)
func MecklenburgVorpommern ¶
MecklenburgVorpommern returns a Region object holding all public holidays in the state Mecklenburg-Vorpommern
func Niedersachsen ¶
Niedersachsen returns a Region object holding all public holidays in the state Niedersachsen
func Niederösterreich ¶
Niederösterreich returns a Region object holding all public holidays in the state of Niederösterreich.
func NordrheinWestfalen ¶
NordrheinWestfalen returns a Region object holding all public holidays in the state Nordrhein-Westfalen
func Oberösterreich ¶
Oberösterreich returns a Region object holding all public holidays in the state of Oberösterreich.
func RheinlandPfalz ¶
RheinlandPfalz returns a Region object holding all public holidays in the state Rheinland-Pfalz
func SachsenAnhalt ¶
SachsenAnhalt returns a Region object holding all public holidays in the state SachsenAnhalt
func Salzburg ¶
Salzburg returns a Region object holding all public holidays in the state of Salzburg.
func SchleswigHolstein ¶
SchleswigHolstein returns a Region object holding all public holidays in the state SchleswigHolstein
func Steiermark ¶
Steiermark returns a Region object holding all public holidays in the state of Steiermark.
func Thüringen ¶
Thüringen returns a Region object holding all public holidays in the state Thüringen
func Vorarlberg ¶
Vorarlberg returns a Region object holding all public holidays in the state of Vorarlberg.
func Wien ¶
Wien returns a Region object holding all public holidays in the city and state of Vienna.
func Österreich ¶
Österreich returns a Region object holding all public holidays that are common in Austria.