it

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 it provides holiday definitions for Italy.

Index

Constants

This section is empty.

Variables

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

	// Epifania represents Epipany on 6-Jan
	Epifania = aa.Epiphany.Clone(&cal.Holiday{Name: "Epifania", Type: cal.ObservancePublic})

	// Pasquetta represents Easter Monday on the day after Easter
	Pasquetta = aa.EasterMonday.Clone(&cal.Holiday{Name: "Pasquetta", Type: cal.ObservancePublic})

	// FestaDellaLiberazione represents Liberation Day on 25-Apr
	FestaDellaLiberazione = &cal.Holiday{
		Name:  "Festa della Liberazione",
		Type:  cal.ObservancePublic,
		Month: time.April,
		Day:   25,
		Func:  cal.CalcDayOfMonth,
	}

	// FestaDelLavoro represents Labour Day on 1-May
	FestaDelLavoro = aa.WorkersDay.Clone(&cal.Holiday{Name: "Festa del Lavoro", Type: cal.ObservancePublic})

	// FestaDellaRepubblica represents Republic Day on 2-Jun
	FestaDellaRepubblica = &cal.Holiday{
		Name:  "Festa della Repubblica",
		Type:  cal.ObservancePublic,
		Month: time.June,
		Day:   2,
		Func:  cal.CalcDayOfMonth,
	}

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

	// San Francesco d’Assisi represents Saint Francis of Assisi's Day on 4-Oct
	SanFrancescoDAssisi = &cal.Holiday{
		Name:      "San Francesco d'Assisi",
		Type:      cal.ObservancePublic,
		Month:     time.October,
		Day:       4,
		Func:      cal.CalcDayOfMonth,
		StartYear: 2026,
	}

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

	// Immacolata represents Immaculate Conception on 8-Dec
	Immacolata = aa.ImmaculateConception.Clone(&cal.Holiday{Name: "Immacolata Concezione", Type: cal.ObservancePublic})

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

	// SantoStefano represents Saint Stephen's Day on 26-Dec
	SantoStefano = aa.ChristmasDay2.Clone(&cal.Holiday{Name: "Santo Stefano", Type: cal.ObservancePublic})

	// Holidays provides a list of the standard national holidays
	Holidays = []*cal.Holiday{
		Capodanno,
		Epifania,
		Pasquetta,
		FestaDellaLiberazione,
		FestaDelLavoro,
		FestaDellaRepubblica,
		Assunzione,
		SanFrancescoDAssisi,
		TuttiISanti,
		Immacolata,
		Natale,
		SantoStefano,
	}
)

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