cy

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: ? modules, 0 packages

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 cy provides holiday definitions for Cyprus.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Protochronia represents New Year's Day on 1-Jan
	Protochronia = aa.NewYear.Clone(&cal.Holiday{Name: "Πρωτοχρονιά", Type: cal.ObservancePublic})

	// Theofania represents Epiphany on 6-Jan
	Theofania = aa.Epiphany.Clone(&cal.Holiday{Name: "Θεοφάνεια", Type: cal.ObservancePublic})

	// KatharaDeftera represents Green Monday (movable, 48 days before Orthodox Easter Sunday)
	KatharaDeftera = &cal.Holiday{
		Name:   "Καθαρά Δευτέρα",
		Type:   cal.ObservancePublic,
		Func:   cal.CalcEasterOffset,
		Julian: true,
		Offset: -48,
	}

	// EllinikiEpanastasi represents Greek Independence Day on 25-Mar
	EllinikiEpanastasi = &cal.Holiday{
		Name:  "Ελληνική Επανάσταση",
		Type:  cal.ObservancePublic,
		Month: time.March,
		Day:   25,
		Func:  cal.CalcDayOfMonth,
	}

	// EthnikiEpetios represents National Day (EOKA Day) on 1-Apr
	EthnikiEpetios = &cal.Holiday{
		Name:  "Εθνική Επέτειος",
		Type:  cal.ObservancePublic,
		Month: time.April,
		Day:   1,
		Func:  cal.CalcDayOfMonth,
	}

	// ErgatikoiProtomagia represents Labour Day on 1-May
	ErgatikoiProtomagia = aa.WorkersDay.Clone(&cal.Holiday{Name: "Εργατική Πρωτομαγιά", Type: cal.ObservancePublic})

	// MegaliParaskevi represents Orthodox Good Friday (movable Julian calendar-based)
	MegaliParaskevi = &cal.Holiday{
		Name: "Μεγάλη Παρασκευή",
		Type: cal.ObservancePublic,
		Func: func(h *cal.Holiday, year int) time.Time {

			return cal.CalcEasterOffset(&cal.Holiday{Offset: -2, Julian: true}, year)
		},
	}

	// DeuteraTouPascha represents Orthodox Easter Monday (Julian calendar-based)
	DeuteraTouPascha = &cal.Holiday{
		Name: "Δευτέρα του Πάσχα",
		Type: cal.ObservancePublic,
		Func: func(h *cal.Holiday, year int) time.Time {

			return cal.CalcEasterOffset(&cal.Holiday{Offset: 1, Julian: true}, year)
		},
	}

	// AgiouPnevmatos represents Orthodox Whit Monday (movable, 50 days after Orthodox Easter Sunday)
	AgiouPnevmatos = &cal.Holiday{
		Name:   "Αγίου Πνεύματος",
		Type:   cal.ObservancePublic,
		Func:   cal.CalcEasterOffset,
		Julian: true,
		Offset: 50,
	}

	// KoimisiTisTheotokou represents Assumption Day on 15-Aug
	KoimisiTisTheotokou = aa.AssumptionOfMary.Clone(&cal.Holiday{Name: "Κοίμηση της Θεοτόκου", Type: cal.ObservancePublic})

	// Anexartisia represents Cyprus Independence Day on 1-Oct
	Anexartisia = &cal.Holiday{
		Name:  "Ανεξαρτησία της Κύπρου",
		Type:  cal.ObservancePublic,
		Month: time.October,
		Day:   1,
		Func:  cal.CalcDayOfMonth,
	}

	// EpeteiosTouOchi represents Ochi Day on 28-Oct
	EpeteiosTouOchi = &cal.Holiday{
		Name:  "Επέτειος του Όχι",
		Type:  cal.ObservancePublic,
		Month: time.October,
		Day:   28,
		Func:  cal.CalcDayOfMonth,
	}

	// Christougenna represents Christmas Day on 25-Dec
	Christougenna = aa.ChristmasDay.Clone(&cal.Holiday{Name: "Χριστούγεννα", Type: cal.ObservancePublic})

	// DeyteriMeraTonChristougennon represents Boxing Day (Second Day of Christmas) on 26-Dec
	DeyteriMeraTonChristougennon = aa.ChristmasDay2.Clone(&cal.Holiday{Name: "Δεύτερη Μέρα των Χριστουγέννων", Type: cal.ObservancePublic})

	// Holidays provides a list of the standard national holidays
	Holidays = []*cal.Holiday{
		Protochronia,
		Theofania,
		KatharaDeftera,
		EllinikiEpanastasi,
		EthnikiEpetios,
		ErgatikoiProtomagia,
		MegaliParaskevi,
		DeuteraTouPascha,
		AgiouPnevmatos,
		KoimisiTisTheotokou,
		Anexartisia,
		EpeteiosTouOchi,
		Christougenna,
		DeyteriMeraTonChristougennon,
	}
)

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