ie

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 ie provides holiday definitions for the Republic Of Ireland.

Index

Constants

This section is empty.

Variables

View Source
var (
	// NewYear represents New Year's Day on 1-Jan
	NewYear = aa.NewYear.Clone(&cal.Holiday{})

	// SaintBrigidDay represents Saint Patrick's Day on 17-Mar
	SaintBrigidDay = &cal.Holiday{
		Name:      "Saint Brigid’s Day",
		Month:     time.February,
		Weekday:   time.Monday,
		Offset:    1,
		Func:      CalcIfFirstFallsOnFriday,
		StartYear: 2023,
	}

	// ExtraPublicHoliday2022 represents extra public holiday in 2022
	ExtraPublicHoliday2022 = &cal.Holiday{
		Name:      "Extra Public Holiday 2022",
		Month:     time.March,
		Day:       18,
		StartYear: 2022,
		EndYear:   2022,
		Func:      cal.CalcDayOfMonth,
	}

	// SaintPatrickDay represents Saint Patrick's Day on 17-Mar
	SaintPatrickDay = &cal.Holiday{
		Name:  "Saint Patrick's Day",
		Month: time.March,
		Day:   17,
		Func:  cal.CalcDayOfMonth,
	}

	// EasterMonday represents Easter Monday - the day after Easter
	EasterMonday = aa.EasterMonday.Clone(&cal.Holiday{})

	// FirstMondayMay represents the first Monday in May
	FirstMondayMay = &cal.Holiday{
		Name:    "First Monday in May",
		Month:   time.May,
		Weekday: time.Monday,
		Offset:  1,
		Func:    cal.CalcWeekdayOffset,
	}

	// FirstMondayJune represents the first Monday in June
	FirstMondayJune = &cal.Holiday{
		Name:    "First Monday in June",
		Month:   time.June,
		Weekday: time.Monday,
		Offset:  1,
		Func:    cal.CalcWeekdayOffset,
	}

	// FirstMondayAugust represents the first Monday in August
	FirstMondayAugust = &cal.Holiday{
		Name:    "First Monday in August",
		Month:   time.August,
		Weekday: time.Monday,
		Offset:  1,
		Func:    cal.CalcWeekdayOffset,
	}

	// LastMondayInOctober represents the last Monday in October
	LastMondayInOctober = &cal.Holiday{
		Name:    "Last Monday in October",
		Type:    cal.ObservancePublic,
		Month:   time.October,
		Weekday: time.Monday,
		Offset:  -1,
		Func:    cal.CalcWeekdayOffset,
	}

	// ChristmasDay represents Christmas Day on 25-Dec
	ChristmasDay = aa.ChristmasDay.Clone(&cal.Holiday{})

	// SaintStephenDay represents Saint Stephen's Day on 26-Dec
	SaintStephenDay = aa.ChristmasDay2.Clone(&cal.Holiday{Name: "Saint Stephen's Day"})

	// Holidays provides a list of the standard national holidays
	Holidays = []*cal.Holiday{
		NewYear,
		ExtraPublicHoliday2022,
		SaintBrigidDay,
		SaintPatrickDay,
		EasterMonday,
		FirstMondayMay,
		FirstMondayJune,
		FirstMondayAugust,
		LastMondayInOctober,
		ChristmasDay,
		SaintStephenDay,
	}
)

Functions

func CalcIfFirstFallsOnFriday added in v2.1.2

func CalcIfFirstFallsOnFriday(h *cal.Holiday, year int) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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