forked from rickar/cal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
holiday_defs_ca.go
35 lines (32 loc) · 907 Bytes
/
holiday_defs_ca.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
package cal
import "time"
// Canadian holidays
var (
CANewYear = NewYear
CAFamilyDay = NewHolidayFloat(time.February, time.Monday, 3)
CAGoodFriday = GoodFriday
CAVictoriaDay = NewHolidayFloat(time.May, time.Monday, 3)
CACanadaDay = NewHoliday(time.July, 1)
CACivicHoliday = NewHolidayFloat(time.August, time.Monday, 1)
CALabourDay = NewHolidayFloat(time.September, time.Monday, 1)
CAThanksgiving = NewHolidayFloat(time.October, time.Monday, 2)
CARemembranceDay = NewHoliday(time.November, 11)
CAChristmasDay = Christmas
CABoxingDay = Christmas2
)
// AddCanadianHolidays adds all Canadian holidays to the Calender
func AddCanadianHolidays(c *Calendar) {
c.AddHoliday(
CANewYear,
CAFamilyDay,
CAGoodFriday,
CAVictoriaDay,
CACanadaDay,
CACivicHoliday,
CALabourDay,
CAThanksgiving,
CARemembranceDay,
CAChristmasDay,
CABoxingDay,
)
}