rs

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 rs provides holiday definitions for Serbia.

Index

Constants

This section is empty.

Variables

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

	// DrugiDanNoveGodine represents the second day of New Year's on 2-Jan
	DrugiDanNoveGodine = &cal.Holiday{
		Name:  "Drugi dan Nove godine",
		Type:  cal.ObservancePublic,
		Month: time.January,
		Day:   2,
		Func:  cal.CalcDayOfMonth,
	}

	// Bozic represents Orthodox Christmas Day on 7-Jan (Julian calendar)
	Bozic = &cal.Holiday{
		Name:   "Božić",
		Type:   cal.ObservancePublic,
		Month:  time.January,
		Day:    7,
		Julian: true,
		Func:   cal.CalcDayOfMonth,
	}

	// DanDrzavnosti represents Statehood Day on 15-Feb
	DanDrzavnosti = &cal.Holiday{
		Name:  "Dan državnosti",
		Type:  cal.ObservancePublic,
		Month: time.February,
		Day:   15,
		Func:  cal.CalcDayOfMonth,
	}

	// DrugiDanDrzavnosti represents the second day of Statehood Day on 16-Feb
	DrugiDanDrzavnosti = &cal.Holiday{
		Name:  "Drugi dan Dana državnosti",
		Type:  cal.ObservancePublic,
		Month: time.February,
		Day:   16,
		Func:  cal.CalcDayOfMonth,
	}

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

	// DrugiDanPraznikaRada represents the second day of Labour Day on 2-May
	DrugiDanPraznikaRada = &cal.Holiday{
		Name:  "Drugi dan Praznika rada",
		Type:  cal.ObservancePublic,
		Month: time.May,
		Day:   2,
		Func:  cal.CalcDayOfMonth,
	}

	// VelikiPetak represents Orthodox Good Friday (movable, 2 days before Orthodox Easter)
	VelikiPetak = &cal.Holiday{
		Name:   "Veliki petak",
		Type:   cal.ObservancePublic,
		Func:   cal.CalcEasterOffset,
		Julian: true,
		Offset: -2,
	}

	// Vaskrs represents Orthodox Easter Sunday (movable)
	Vaskrs = &cal.Holiday{
		Name:   "Vaskrs",
		Type:   cal.ObservancePublic,
		Func:   cal.CalcEasterOffset,
		Julian: true,
	}

	// VaskrsnjiPonedeljak represents Orthodox Easter Monday (movable, 1 day after Orthodox Easter)
	VaskrsnjiPonedeljak = &cal.Holiday{
		Name:   "Vaskršnji ponedeljak",
		Type:   cal.ObservancePublic,
		Func:   cal.CalcEasterOffset,
		Julian: true,
		Offset: 1,
	}

	// DanPrimirja represents Armistice Day on 11-Nov
	DanPrimirja = &cal.Holiday{
		Name:  "Dan primirja u Prvom svetskom ratu",
		Type:  cal.ObservancePublic,
		Month: time.November,
		Day:   11,
		Func:  cal.CalcDayOfMonth,
	}

	// Holidays provides a list of the standard national holidays
	Holidays = []*cal.Holiday{
		NovaGodina,
		DrugiDanNoveGodine,
		Bozic,
		DanDrzavnosti,
		DrugiDanDrzavnosti,
		PraznikRada,
		DrugiDanPraznikaRada,
		VelikiPetak,
		Vaskrs,
		VaskrsnjiPonedeljak,
		DanPrimirja,
	}
)

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