ie

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

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{})

	// 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,
		SaintPatrickDay,
		EasterMonday,
		FirstMondayMay,
		FirstMondayJune,
		FirstMondayAugust,
		LastMondayInOctober,
		ChristmasDay,
		SaintStephenDay,
	}
)

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