forked from rickar/cal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
holiday_defs_cz.go
41 lines (38 loc) · 915 Bytes
/
holiday_defs_cz.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package cal
import (
"time"
)
// Czech holidays
var (
CZNewYear = NewYear
CZGoodFriday = GoodFriday
CZEasterMonday = EasterMonday
CZLabor = NewHoliday(time.May, 1)
CZLiberation = NewHoliday(time.May, 8)
CZSaintsCyril = NewHoliday(time.July, 5)
CZJanHus = NewHoliday(time.July, 6)
CZSaintWenceslas = NewHoliday(time.September, 28)
CZFoundationCZSK = NewHoliday(time.October, 28)
CZFreedom = NewHoliday(time.November, 17)
CZChristmasEve = NewHoliday(time.December, 24)
CZChristmas = Christmas
CZSaintStephen = Christmas2
)
// AddCzechHolidays adds all Czech holidays to the Calendar
func AddCzechHolidays(c *Calendar) {
c.AddHoliday(
CZNewYear,
CZGoodFriday,
CZEasterMonday,
CZLabor,
CZLiberation,
CZSaintsCyril,
CZJanHus,
CZSaintWenceslas,
CZFoundationCZSK,
CZFreedom,
CZChristmasEve,
CZChristmas,
CZSaintStephen,
)
}