es

package
v2.1.35 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: BSD-3-Clause Imports: 3 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package es provides holiday definitions for Spain.

Index

Constants

This section is empty.

Variables

View Source
var (
	// AñoNuevo represents New Year's Day on 1-Jan
	AñoNuevo = aa.NewYear.Clone(&cal.Holiday{Name: "Año Nuevo", Type: cal.ObservancePublic})

	// Reyes represents Epiphany on 6-Jan
	Reyes = aa.Epiphany.Clone(&cal.Holiday{Name: "Día de Reyes", Type: cal.ObservancePublic})

	// ViernesSanto represents Good Friday on the Friday before Easter
	ViernesSanto = aa.GoodFriday.Clone(&cal.Holiday{Name: "Viernes Santo", Type: cal.ObservancePublic})

	// Trabajador represents Labour Day on 1-May
	Trabajador = aa.WorkersDay.Clone(&cal.Holiday{Name: "Día del Trabajador", Type: cal.ObservancePublic})

	// Asunción represents Assumption of Mary on 15-Aug
	Asunción = aa.AssumptionOfMary.Clone(&cal.Holiday{Name: "Asunción", Type: cal.ObservancePublic})

	// FiestaNacionalDeEspaña represents Spanish National Day on 12-Oct
	FiestaNacionalDeEspaña = &cal.Holiday{
		Name:  "Fiesta Nacional de España",
		Type:  cal.ObservancePublic,
		Month: time.October,
		Day:   12,
		Func:  cal.CalcDayOfMonth,
	}

	// TodosLosSantos represents All Saints' Day on 1-Nov
	TodosLosSantos = aa.AllSaintsDay.Clone(&cal.Holiday{Name: "Día de todos los Santos", Type: cal.ObservancePublic})

	// Constitucion represents Spanish Constitution Day on 6-Dec
	Constitucion = &cal.Holiday{
		Name:  "Día de la Constitución",
		Type:  cal.ObservancePublic,
		Month: time.December,
		Day:   6,
		Func:  cal.CalcDayOfMonth,
	}

	// InmaculadaConcepcion represents Immaculate Conception on 8-Dec
	InmaculadaConcepcion = aa.ImmaculateConception.Clone(&cal.Holiday{Name: "Inmaculada Concepción", Type: cal.ObservancePublic})

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

	// Holidays provides a list of the standard national holidays
	Holidays = []*cal.Holiday{
		AñoNuevo,
		Reyes,
		ViernesSanto,
		Trabajador,
		Asunción,
		FiestaNacionalDeEspaña,
		TodosLosSantos,
		Constitucion,
		InmaculadaConcepcion,
		Navidad,
	}
)

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