hu

package
v2.1.27 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package hu provides holiday definitions for Hungary.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Ujev represents New Year's Day on 1-Jan
	Ujev = aa.NewYear.Clone(&cal.Holiday{Name: "Újév", Type: cal.ObservancePublic})

	// NemzetiUnnepMarcius represents Revolution Day on 15-Mar
	NemzetiUnnepMarcius = &cal.Holiday{
		Name:  "Nemzeti ünnep",
		Type:  cal.ObservancePublic,
		Month: time.March,
		Day:   15,
		Func:  cal.CalcDayOfMonth,
	}

	// Nagypentek represents Good Friday (movable, Friday before Easter Sunday)
	Nagypentek = aa.GoodFriday.Clone(&cal.Holiday{Name: "Nagypéntek", Type: cal.ObservancePublic})

	// HusvetHetfo represents Easter Monday (movable, Monday after Easter Sunday)
	HusvetHetfo = aa.EasterMonday.Clone(&cal.Holiday{Name: "Húsvéthétfő", Type: cal.ObservancePublic})

	// AmunkaUnnepe represents Labour Day on 1-May
	AmunkaUnnepe = aa.WorkersDay.Clone(&cal.Holiday{Name: "A munka ünnepe", Type: cal.ObservancePublic})

	// PunkosdHetfo represents Whit Monday (movable, Monday after Pentecost)
	PunkosdHetfo = aa.PentecostMonday.Clone(&cal.Holiday{Name: "Pünkösdhétfő", Type: cal.ObservancePublic})

	// SzentIstvanUnnepe represents State Foundation Day on 20-Aug
	SzentIstvanUnnepe = &cal.Holiday{
		Name:  "Az államalapítás ünnepe",
		Type:  cal.ObservancePublic,
		Month: time.August,
		Day:   20,
		Func:  cal.CalcDayOfMonth,
	}

	// NemzetiUnnepOkt represents Republic Day on 23-Oct
	NemzetiUnnepOkt = &cal.Holiday{
		Name:  "Nemzeti ünnep",
		Type:  cal.ObservancePublic,
		Month: time.October,
		Day:   23,
		Func:  cal.CalcDayOfMonth,
	}

	// Mindenszentek represents All Saints' Day on 1-Nov
	Mindenszentek = aa.AllSaintsDay.Clone(&cal.Holiday{Name: "Mindenszentek", Type: cal.ObservancePublic})

	// Karacsony represents Christmas Day on 25-Dec
	Karacsony = aa.ChristmasDay.Clone(&cal.Holiday{Name: "Karácsony", Type: cal.ObservancePublic})

	// KaracsonyMasnapja represents Second Day of Christmas on 26-Dec
	KaracsonyMasnapja = &cal.Holiday{
		Name:  "Karácsony másnapja",
		Type:  cal.ObservancePublic,
		Month: time.December,
		Day:   26,
		Func:  cal.CalcDayOfMonth,
	}

	// Holidays provides a list of the standard national holidays
	Holidays = []*cal.Holiday{
		Ujev,
		NemzetiUnnepMarcius,
		Nagypentek,
		HusvetHetfo,
		AmunkaUnnepe,
		PunkosdHetfo,
		SzentIstvanUnnepe,
		NemzetiUnnepOkt,
		Mindenszentek,
		Karacsony,
		KaracsonyMasnapja,
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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