forked from rickar/cal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
holiday_defs_sk.go
45 lines (42 loc) · 1 KB
/
holiday_defs_sk.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
42
43
44
45
package cal
import (
"time"
)
// Slovak holidays
var (
SKNewYear = NewYear
SKEpiphany = NewHoliday(time.January, 6)
SKGoodFriday = GoodFriday
SKEasterMonday = EasterMonday
SKLabor = NewHoliday(time.May, 1)
SKLiberation = NewHoliday(time.May, 8)
SKSaintsCyril = NewHoliday(time.July, 5)
SKSNP = NewHoliday(time.August, 29)
SKConstitution = NewHoliday(time.September, 1)
SKLadyOfSorrows = NewHoliday(time.September, 15)
SKAllSaints = NewHoliday(time.November, 1)
SKFreedom = NewHoliday(time.November, 17)
SKChristmasEve = NewHoliday(time.December, 24)
SKChristmas = Christmas
SKSaintStephen = Christmas2
)
// AddSlovakHolidays adds all Slovak holidays to the Calendar
func AddSlovakHolidays(c *Calendar) {
c.AddHoliday(
SKNewYear,
SKEpiphany,
SKGoodFriday,
SKEasterMonday,
SKLabor,
SKLiberation,
SKSaintsCyril,
SKSNP,
SKConstitution,
SKLadyOfSorrows,
SKAllSaints,
SKFreedom,
SKChristmasEve,
SKChristmas,
SKSaintStephen,
)
}