feiertage

package module
v1.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2026 License: MIT Imports: 6 Imported by: 5

README

Feiertage

Feiertage is a Go/Golang library for calculating German and Austrian bank holidays. It includes the calculation of the date of Easter and, more importantly, offers ways to retrieve public holidays for a state of Germany or Austria (=Bundesland).

The library is probably useful only for people realizing use cases with special requirements inside of Austria or Germany, such as shift schedules or capacity calculation.

Documentation

See https://pkg.go.dev/github.com/wlbr/feiertage

Usage:

There are two types of functions:

  • <feiertag>(year) and
  • <region>(year optional:IncludingSundays:true)

<feiertag> returns an extended time object (type feiertag). It carries the date of the holiday in the requested year plus the name of the holiday. <feiertag> may be any of the following:

Neujahr Epiphanias
HeiligeDreiKönige Weltknuddeltag
InternationalerTagDesGedenkensAnDieOpferDesHolocaust Weiberfastnacht
Valentinstag Karnevalssonntag
Rosenmontag Fastnacht
Aschermittwoch InternationalerFrauentag
Josefitag Palmsonntag
BeginnSommerzeit Gründonnerstag
Karfreitag Ostern
Ostermontag TagDerErde
Walpurgisnacht Staatsfeiertag
TagDerArbeit InternationalerTagDerPressefreiheit
StarWarsDay Florianitag
TagDerBefreiung Muttertag
Vatertag ChristiHimmelfahrt
Pfingsten Handtuchtag
Pfingstmontag TowelDay
Dreifaltigkeitssonntag InternationalerKindertag
Fronleichnam Weltumwelttag
TagDesMeeres Weltspieltag
Weltblutspendetag Weltflüchtlingstag
FêteDeLaMusique InternationalerTagGegenDrogenmissbrauch
SystemAdministratorAppreciationDay MariäHimmelfahrt
Antikriegstag Weltkindertag
HobbitDay Rupertitag
TagDerDeutschenEinheit Erntedankfest
TagDerVolksabstimmung BeginnWinterzeit
Nationalfeiertag Halloween
Reformationstag Allerheiligen
Allerseelen Weltmännertag
Martinstag Karnevalsbeginn
Volkstrauertag Leopolditag
BußUndBettag InternationalerMännertag
Totensontag Thanksgiving
Blackfriday ErsterAdvent
Nikolaus ZweiterAdvent
MariäEmpfängnis MariäUnbefleckteEmpfängnis
DritterAdvent VierterAdvent
Heiligabend Christtag
Weihnachten Stefanitag
ZweiterWeihnachtsfeiertag Silvester

<region> returns an object of type region. It offers a list of public holidays valid in the specified state as well as the name and the shortname of the state as attributes. <region> may be any of:

BadenWürttemberg Bayern Berlin
Brandenburg Bremen Hamburg
Hessen MecklenburgVorpommern Niedersachsen
NordrheinWestfalen RheinlandPfalz Saarland
Sachsen SachsenAnhalt SchleswigHolstein
Thüringen Deutschland Burgenland
Kärnten Niederösterreich Oberösterreich
Salzburg Steiermark Tirol
Vorarlberg Wien Österreich
All    

The optional region function argument includingSundays switches the behavior of the region function to include "gesetzliche Feiertage" that fall on Sundays in its output. This is important in Brandenburg, particularly for Easter and Pentecost Sunday. If you are calculating shift costs you will need to know even the holidays "hidden by Sunday".

The region functions return the public holidays ("gesetzliche Feiertage"). The function all returns all defined "special dates", such as Penance Day (Buß- und Bettag) or the begin/end of daylight saving time.

The regional functions for Austrian Bundesländer include saints' days which are state-level holidays, meaning schools etc. are generally closed but workers don't get the day off by default. If you don't want to include these days in your planning, it's okay to reference Österreich instead, as legal holidays are (more or less) synchronised across all Austrian states (Bundesländer).

Examples:
fmt.Println(Ostern(2016))
--> 27.03.2016 Ostern


fmt.Println(BußUndBettag(2016))
--> 16.11.2016 Buß- und Bettag



fmt.Println(Brandenburg(2016))
--> Brandenburg (BB)
    01.01.2016 Neujahr
    25.03.2016 Karfreitag
    27.03.2016 Ostern
    28.03.2016 Ostermontag
    01.05.2016 Tag der Arbeit
    05.05.2016 Christi Himmelfahrt
    15.05.2016 Pfingsten
    16.05.2016 Pfingstmontag
    03.10.2016 Tag der deutschen Einheit
    31.10.2016 Reformationstag
    25.12.2016 Weihnachten
    26.12.2016 Zweiter Weihnachtsfeiertag


fmt.Println(Brandenburg(2016, false))
--> Brandenburg (BB)
    01.01.2016 Neujahr
    25.03.2016 Karfreitag
    28.03.2016 Ostermontag
    01.05.2016 Tag der Arbeit
    05.05.2016 Christi Himmelfahrt
    16.05.2016 Pfingstmontag
    03.10.2016 Tag der deutschen Einheit
    31.10.2016 Reformationstag
    25.12.2016 Weihnachten
    26.12.2016 Zweiter Weihnachtsfeiertag

Command line tool

A little command line tool is included as well. It can be compiled using make buildcmd or go build cmd/feiertage/feiertage.go This will create an executable feiertage.

See https://github.com/wlbr/feiertage/releases/latest for downloads.

Synopsis

feiertage: [options] year

-asTaskjugglerCode (default false)
Print the result as valid source code (`leave x y`) for the Taskjuggler planning tool.
-inklusiveSonntage (default false)
Should public holidays on a Sunday be included?
-region <regionstring> (default "All")
Return public holidays for region ``.
<regionstring> may be (case insensitive, plus some other tricks to make it more tolerant):
 BadenWürttemberg
 Bayern
 Berlin
 Brandenburg
 Bremen
 Hamburg
 Hessen
 MecklenburgVorpommern
 Niedersachsen
 NordrheinWestfalen
 RheinlandPfalz
 Saarland
 Sachsen
 SachsenAnhalt
 SchleswigHolstein
 Thüringen
 Deutschland
 Burgenland
 Kärnten
 Niederösterreich
 Oberösterreich
 Salzburg
 Steiermark
 Tirol
 Vorarlberg
 Wien
 Österreich
 All

Code

  • Documentation: Go Reference
  • Continuous Integration: CI
  • Test Coverage: codecov
  • Metrics: GoReportCard

Documentation

Index

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

func SetDefaultTimeZone(timezone *time.Location)

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

func (ByDate) Len

func (a ByDate) Len() int

Len is the sort criteria for Feiertage

func (ByDate) Less

func (a ByDate) Less(i, j int) bool

Less is a comparator for Feiertage sorting.

func (ByDate) Swap

func (a ByDate) Swap(i, j int)

Swap exchanges two Feiertage within an array.

type Feiertag

type Feiertag struct {
	time.Time
	Text    string   `json:"name"`
	Regions []Region `json:"-"`
}

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

func Allerheiligen(year int) Feiertag

Allerheiligen is All Saints' Day or Allhallows, a fixed date

func Allerseelen

func Allerseelen(year int) Feiertag

Allerseelen is All Souls' Day, the day after All Saints' Day,

func Antikriegstag added in v1.20.1

func Antikriegstag(year int) Feiertag

Antikriegstag is Anti-War Day, a fixed date.

func Aschermittwoch

func Aschermittwoch(year int) Feiertag

Aschermittwoch is Ash Wednesday, 46 days before Easter.

func BeginnSommerzeit

func BeginnSommerzeit(year int) Feiertag

BeginnSommerzeit is the start of daylight saving time. Last Sunday of March.

func BeginnWinterzeit

func BeginnWinterzeit(year int) Feiertag

BeginnWinterzeit is the end of daylight saving time. Last Sunday of October.

func Blackfriday

func Blackfriday(year int) Feiertag

Blackfriday is the Friday after Thanksgiving.

func BußUndBettag

func BußUndBettag(year int) Feiertag

BußUndBettag is Penance Day, 11 days before the first Sunday in Advent

func ChristiHimmelfahrt

func ChristiHimmelfahrt(year int) Feiertag

ChristiHimmelfahrt is Ascension Day, 39 days after Easter, therefore always a Thursday.

func Christtag

func Christtag(year int) Feiertag

Christtag is Christmas is in Austria.

func Dreifaltigkeitssonntag

func Dreifaltigkeitssonntag(year int) Feiertag

Dreifaltigkeitssonntag is Trinity Sunday, the Sunday after Pentecost

func DritterAdvent

func DritterAdvent(year int) Feiertag

DritterAdvent is the third Sunday in Advent

func Epiphanias

func Epiphanias(year int) Feiertag

Epiphanias is Epiphany, a fixed date.

func Erntedankfest

func Erntedankfest(year int) Feiertag

Erntedankfest is Thanksgiving or Harvest Festival, the first Sunday of October. The german Erntedankfest is not the same than the US Thanksgiving.

func ErsterAdvent

func ErsterAdvent(year int) Feiertag

ErsterAdvent is the first Sunday in Advent

func Fastnacht

func Fastnacht(year int) Feiertag

Fastnacht is shrovetide, the Tuesday of carnival, 47 days before Easter.

func Florianitag

func Florianitag(year int) Feiertag

Florianitag is St Florian's Day, a fixed date.

func Fronleichnam

func Fronleichnam(year int) Feiertag

Fronleichnam is Corpus Christi, 60 days after Eastern, therefore always a Thursday.

func FêteDeLaMusique added in v1.11.0

func FêteDeLaMusique(year int) Feiertag

FêteDeLaMusique is World Music Day, a fixed date.

func GetFeiertageForDate added in v1.13.0

func GetFeiertageForDate(t time.Time) []Feiertag

GetFeiertageForDate returns all feiertage (defined dates in this library, even if not a 'gesetzlicher Feiertag') for a given date Example:

f := feiertage.GetFeiertageForDate(time.Date(2025, 6, 8, 1, 0, 0, 0, time.UTC))
fmt.Printf("%s - %s\n", f[0].Time.Format("2006-01-02"), f)

Output:

2025-06-08 - [08.06.2025 Tag des Meeres 08.06.2025 Pfingsten]

func GetFeiertageForDateInRegion added in v1.13.0

func GetFeiertageForDateInRegion(t time.Time, regionFn func(y int, inklSonntage ...bool) Region, inklSonntage ...bool) []Feiertag

GetFeiertageForDateInRegion retrieves all bank holiday (gesetzliche Feiertage) for a given date in the specified region. Example:

regionfn := feiertage.Brandenburg
f := feiertage.GetFeiertageForDateInRegion(time.Date(2025, 6, 8, 1, 0, 0, 0, time.UTC), regionfn, true)
fmt.Printf("%s - %s: %v\n", f[0].Time.Format("2006-01-02"), regionfn(2025, true).Name, f)

Output:

2025-06-08 - Brandenburg: [08.06.2025 Pfingsten]

func Gründonnerstag

func Gründonnerstag(year int) Feiertag

Gründonnerstag is Holy Thursday or Maundy Thursday, the last Thursday before Eastern

func Halloween

func Halloween(year int) Feiertag

Halloween is a fixed date.

func Handtuchtag added in v1.9.0

func Handtuchtag(year int) Feiertag

Handtuchtag is Towel Day, May 25. It is celebrated as a tribute to the author Douglas Adams by his fans.

func Heiligabend

func Heiligabend(year int) Feiertag

Heiligabend is Christmas Eve, the last day before Christmas.

func HeiligeDreiKönige

func HeiligeDreiKönige(year int) Feiertag

HeiligeDreiKönige is another name for Epiphany, a fixed date.

func HobbitDay added in v1.11.0

func HobbitDay(year int) Feiertag

Hobbit Day is a fixed date.

func InternationalerFrauentag added in v1.6.1

func InternationalerFrauentag(year int) Feiertag

InternationalerFrauentag is International Women's Day, a fixed date.

func InternationalerKindertag added in v1.6.1

func InternationalerKindertag(year int) Feiertag

InternationalerKindertag is special to Germany and Austrian and isnot the same as Weltkindertag (World Children's Day), a fixed date.

func InternationalerMännertag added in v1.11.0

func InternationalerMännertag(year int) Feiertag

InternationalerMännertag is International Day Men's Day, a fixed date

func InternationalerTagDerPressefreiheit added in v1.6.1

func InternationalerTagDerPressefreiheit(year int) Feiertag

InternationalerTagDerPressefreiheit is World Press Freedom Day, a fixed date.

func InternationalerTagDesGedenkensAnDieOpferDesHolocaust added in v1.6.1

func InternationalerTagDesGedenkensAnDieOpferDesHolocaust(year int) Feiertag

InternationalerTagDesGedenkensAnDieOpferDesHolocaust is (International Holocaust Remembrance Day, a fixed date.

func InternationalerTagGegenDrogenmissbrauch added in v1.11.0

func InternationalerTagGegenDrogenmissbrauch(year int) Feiertag

InternationalerTagGegenDrogenmissbrauch is International Day Against Drug Abuse and Illicit Trafficking, a fixed date.

func Josefitag

func Josefitag(year int) Feiertag

Josefitag is St Joseph's Day, a fixed date.

func Karfreitag

func Karfreitag(year int) Feiertag

Karfreitag is Good Friday, the last Friday before Easter

func Karnevalsbeginn

func Karnevalsbeginn(year int) Feiertag

Karnevalsbeginn is the beginning of carnival, a fixed date.

func Karnevalssonntag

func Karnevalssonntag(year int) Feiertag

Karnevalssonntag is the sunday of carnival, 49 days before Easter.

func Leopolditag

func Leopolditag(year int) Feiertag

Leopolditag is St Leopold's Day, a fixed date.

func MariäEmpfängnis

func MariäEmpfängnis(year int) Feiertag

MariäEmpfängnis has a shorter name for MariäUnbefleckteEmpfängnis in Austria.

func MariäHimmelfahrt

func MariäHimmelfahrt(year int) Feiertag

MariäHimmelfahrt is Assumption Day, a fixed date.

func MariäUnbefleckteEmpfängnis

func MariäUnbefleckteEmpfängnis(year int) Feiertag

MariäUnbefleckteEmpfängnis is Day of Immaculate Conception, a fixed date.

func Martinstag

func Martinstag(year int) Feiertag

Martinstag or Skt. Martin is Martinmas, a fixed date

func Muttertag

func Muttertag(year int) Feiertag

Muttertag is Mother's Day oder Mothering Sunday, the second Sunday in May.

func Nationalfeiertag

func Nationalfeiertag(year int) Feiertag

Nationalfeiertag is the Austrian national day, a fixed date.

func Neujahr

func Neujahr(year int) Feiertag

Neujahr is NewYear, a fixed date.

func Nikolaus

func Nikolaus(year int) Feiertag

Nikolaus is St Nicholas' Day, a fixed date

func Ostermontag

func Ostermontag(year int) Feiertag

Ostermontag is Easter Monday, the Monday after Easter.

func Ostern

func Ostern(year int) Feiertag

Ostern is Easter. Calculated by an extended Gauss algorithm.

func Palmsonntag

func Palmsonntag(year int) Feiertag

Palmsonntag is Palm Sunday , the last Sunday before Easter

func Pfingsten

func Pfingsten(year int) Feiertag

Pfingsten is Pentecost, 49 days after Easter.

func Pfingstmontag

func Pfingstmontag(year int) Feiertag

Pfingstmontag is Whit Monday, the monday after Pentecost.

func Reformationstag

func Reformationstag(year int) Feiertag

Reformationstag is Reformation Day, a fixed date.

func Rosenmontag

func Rosenmontag(year int) Feiertag

Rosenmontag is the monday of carnival, 48 days before Easter.

func Rupertitag

func Rupertitag(year int) Feiertag

Rupertitag is St Rupert's Day, a fixed date.

func Silvester

func Silvester(year int) Feiertag

Silvester is NewYearsEve, a fixed date.

func Staatsfeiertag

func Staatsfeiertag(year int) Feiertag

Staatsfeiertag is May 1st in Austria, a fixed date.

func StarWarsDay added in v1.11.0

func StarWarsDay(year int) Feiertag

StarWarsDay is a fixed date.

func Stefanitag

func Stefanitag(year int) Feiertag

Stefanitag is December 26th in Austria.

func SystemAdministratorAppreciationDay added in v1.9.0

func SystemAdministratorAppreciationDay(year int) Feiertag

SystemAdministratorAppreciationDay is the last Fridy in July

func TagDerArbeit

func TagDerArbeit(year int) Feiertag

TagDerArbeit is Labour Day, a fixed date.

func TagDerBefreiung

func TagDerBefreiung(year int) Feiertag

TagDerBefreiung is Victory in Europe Day, a fixed date.

func TagDerDeutschenEinheit

func TagDerDeutschenEinheit(year int) Feiertag

TagDerDeutschenEinheit is German Unity Day, a fixed date.

func TagDerErde added in v1.11.0

func TagDerErde(year int) Feiertag

TagDerErde is Earth Day, a fixed date.

func TagDerVolksabstimmung

func TagDerVolksabstimmung(year int) Feiertag

TagDerVolksabstimmung is Referendum Day in Carinthia, a fixed date.

func TagDesMeeres added in v1.6.1

func TagDesMeeres(year int) Feiertag

TagDesMeeres is World Oceans Day, a fixed date.

func Thanksgiving

func Thanksgiving(year int) Feiertag

Thanksgiving in the US, the fourth Thursday of November.

func Totensonntag

func Totensonntag(year int) Feiertag

Totensontag is Sunday in commemoration of the dead, the last Sunday before the fourth Sunday in Advent

func TowelDay added in v1.9.0

func TowelDay(year int) Feiertag

TowelDay is, May 25. It is celebrated as a tribute to the author Douglas Adams by his fans.

func Valentinstag

func Valentinstag(year int) Feiertag

Valentinstag is Valentine's Day, a fixed date.

func Vatertag

func Vatertag(year int) Feiertag

Vatertag is Father's Day, same day a Ascension Day, 39 days after Easter, therefore always a Thursday.

func VierterAdvent

func VierterAdvent(year int) Feiertag

VierterAdvent is the fourth Sunday in Advent

func Volkstrauertag

func Volkstrauertag(year int) Feiertag

Volkstrauertag is Remembrance Sunday, the second sunday before the first Sunday in Advent

func Walpurgisnacht

func Walpurgisnacht(year int) Feiertag

Walpurgisnacht is Walpurgis Night, a fixed date.

func Weiberfastnacht

func Weiberfastnacht(year int) Feiertag

Weiberfastnacht is a part of carnival, 52 days before Easter.

func Weihnachten

func Weihnachten(year int) Feiertag

Weihnachten is Christmas, a fixed date

func Weltblutspendetag added in v1.11.0

func Weltblutspendetag(year int) Feiertag

Weltblutspendetag is World Blood Donor Day, a fixed date.

func Weltflüchtlingstag added in v1.6.1

func Weltflüchtlingstag(year int) Feiertag

Weltflüchtlingstag is World Refugee Day, a fixed date.

func Weltkindertag added in v1.6.1

func Weltkindertag(year int) Feiertag

Weltkindertag is World Children's Day, a fixed date.

func Weltknuddeltag added in v1.11.0

func Weltknuddeltag(year int) Feiertag

Weltknuddeltag is World Hug Day or National Hugging Day, a fixed date.

func Weltmännertag added in v1.14.0

func Weltmännertag(year int) Feiertag

Weltmännertag is Men's World Day.

func Weltspieltag added in v1.11.0

func Weltspieltag(year int) Feiertag

Weltspieltag is International Day of Play, a fixed date.

func Weltumwelttag added in v1.11.0

func Weltumwelttag(year int) Feiertag

Weltumwelttag is World Environment Day, a fixed date.

func ZweiterAdvent

func ZweiterAdvent(year int) Feiertag

ZweiterAdvent is the second Sunday in Advent

func ZweiterWeihnachtsfeiertag

func ZweiterWeihnachtsfeiertag(year int) Feiertag

ZweiterWeihnachtsfeiertag is day after Christmas, a fixed date

func (Feiertag) MarshalJSON added in v1.16.0

func (f Feiertag) MarshalJSON() ([]byte, error)

func (Feiertag) String

func (f Feiertag) String() string

The String function of Feiertag will print its concrete Time (Date) plus the name of the Feiertag.

type Region

type Region struct {
	Name      string     `json:"region"`
	Shortname string     `json:"-"`
	Feiertage []Feiertag `json:"feiertage"`
}

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

func All(year int, inklSonntage ...bool) Region

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

func BadenWürttemberg(year int, inklSonntage ...bool) Region

BadenWürttemberg returns a Region object holding all public holidays in the state Baden-Württemberg

func Bayern

func Bayern(year int, inklSonntage ...bool) Region

Bayern returns a Region object holding all public holidays in the state Bayern

func Berlin

func Berlin(year int, inklSonntage ...bool) Region

Berlin returns a Region object holding all public holidays in the state Berlin

func Brandenburg

func Brandenburg(year int, inklSonntage ...bool) Region

Brandenburg returns a Region object holding all public holidays in the state Brandenburg

func Bremen

func Bremen(year int, inklSonntage ...bool) Region

Bremen returns a Region object holding all public holidays in the state Bremen

func Burgenland

func Burgenland(year int, inklSonntage ...bool) Region

Burgenland returns a Region object holding all public holidays in the state of Burgenland.

func Deutschland

func Deutschland(year int, inklSonntage ...bool) Region

Deutschland returns a Region object holding all public holidays that are Common in Germany

func GetAllRegions added in v1.8.0

func GetAllRegions(year int, inklSonntag bool, country ...string) (regions []Region)

GetAllRegions returns a list of all regions available. These may be filtered by providing the country ("de"|"at"|empty)

func Hamburg

func Hamburg(year int, inklSonntage ...bool) Region

Hamburg returns a Region object holding all public holidays in the state Hamburg

func Hessen

func Hessen(year int, inklSonntage ...bool) Region

Hessen returns a Region object holding all public holidays in the state Hessen

func Kärnten

func Kärnten(year int, inklSonntage ...bool) Region

Kärnten returns a Region object holding all public holidays in the state of Kärnten.

func MecklenburgVorpommern

func MecklenburgVorpommern(year int, inklSonntage ...bool) Region

MecklenburgVorpommern returns a Region object holding all public holidays in the state Mecklenburg-Vorpommern

func Niedersachsen

func Niedersachsen(year int, inklSonntage ...bool) Region

Niedersachsen returns a Region object holding all public holidays in the state Niedersachsen

func Niederösterreich

func Niederösterreich(year int, inklSonntage ...bool) Region

Niederösterreich returns a Region object holding all public holidays in the state of Niederösterreich.

func NordrheinWestfalen

func NordrheinWestfalen(year int, inklSonntage ...bool) Region

NordrheinWestfalen returns a Region object holding all public holidays in the state Nordrhein-Westfalen

func Oberösterreich

func Oberösterreich(year int, inklSonntage ...bool) Region

Oberösterreich returns a Region object holding all public holidays in the state of Oberösterreich.

func RheinlandPfalz

func RheinlandPfalz(year int, inklSonntage ...bool) Region

RheinlandPfalz returns a Region object holding all public holidays in the state Rheinland-Pfalz

func Saarland

func Saarland(year int, inklSonntage ...bool) Region

Saarland returns a Region object holding all public holidays in the state Saarland

func Sachsen

func Sachsen(year int, inklSonntage ...bool) Region

Sachsen returns a Region object holding all public holidays in the state Sachsen

func SachsenAnhalt

func SachsenAnhalt(year int, inklSonntage ...bool) Region

SachsenAnhalt returns a Region object holding all public holidays in the state SachsenAnhalt

func Salzburg

func Salzburg(year int, inklSonntage ...bool) Region

Salzburg returns a Region object holding all public holidays in the state of Salzburg.

func SchleswigHolstein

func SchleswigHolstein(year int, inklSonntage ...bool) Region

SchleswigHolstein returns a Region object holding all public holidays in the state SchleswigHolstein

func Steiermark

func Steiermark(year int, inklSonntage ...bool) Region

Steiermark returns a Region object holding all public holidays in the state of Steiermark.

func Thüringen

func Thüringen(year int, inklSonntage ...bool) Region

Thüringen returns a Region object holding all public holidays in the state Thüringen

func Tirol

func Tirol(year int, inklSonntage ...bool) Region

Tirol returns a Region object holding all public holidays in the state of Tirol.

func Vorarlberg

func Vorarlberg(year int, inklSonntage ...bool) Region

Vorarlberg returns a Region object holding all public holidays in the state of Vorarlberg.

func Wien

func Wien(year int, inklSonntage ...bool) Region

Wien returns a Region object holding all public holidays in the city and state of Vienna.

func Österreich

func Österreich(year int, inklSonntage ...bool) Region

Österreich returns a Region object holding all public holidays that are common in Austria.

func (Region) String

func (r Region) String() string

String returns a String containing the name and Shortname of the region and the list of public holidays (objects of type Feiertage).

Directories

Path Synopsis
cmd
feiertage command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL