no

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 no provides holiday definitions for Norway.

Index

Constants

This section is empty.

Variables

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

	// Skjaertorsdag represents Maundy Thursday on the Thursday before Easter
	Skjaertorsdag = aa.MaundyThursday.Clone(&cal.Holiday{Name: "Skjærtorsdag", Type: cal.ObservancePublic})

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

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

	// Arbeiderenesdag represents Labour Day on 1-May
	Arbeiderenesdag = aa.WorkersDay.Clone(&cal.Holiday{Name: "Arbeidernes dag", Type: cal.ObservancePublic})

	// Grunnlovsdag represents Constitution Day on 17-May
	Grunnlovsdag = &cal.Holiday{
		Name:  "Grunnlovsdag",
		Type:  cal.ObservancePublic,
		Month: time.May,
		Day:   17,
		Func:  cal.CalcDayOfMonth,
	}

	// Kristihimmelfartsdag represents Ascension Day on the 39th day after Easter
	Kristihimmelfartsdag = aa.AscensionDay.Clone(&cal.Holiday{Name: "Kristi Himmelfartsdag", Type: cal.ObservancePublic})

	// AndrePinsedag represents Pentecost Monday on the day after Pentecost (50 days after Easter)
	AndrePinsedag = aa.PentecostMonday.Clone(&cal.Holiday{Name: "Andre pinsedag", Type: cal.ObservancePublic})

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

	// AndreJuledag represents the second day of Christmas on 26-Dec
	AndreJuledag = aa.ChristmasDay2.Clone(&cal.Holiday{Name: "Andre juledag", Type: cal.ObservancePublic})

	// Holidays provides a list of the standard national holidays
	Holidays = []*cal.Holiday{
		FoersteNyttaarsdag,
		Skjaertorsdag,
		Langfredag,
		AndrePaaskedag,
		Arbeiderenesdag,
		Grunnlovsdag,
		Kristihimmelfartsdag,
		AndrePinsedag,
		FoersteJuledag,
		AndreJuledag,
	}
)

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