forked from rickar/cal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
holiday_defs_it.go
35 lines (32 loc) · 905 Bytes
/
holiday_defs_it.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"
// Italian holidays
var (
ITCapodanno = NewYear
ITEpifania = NewHoliday(time.January, 6)
ITPasquetta = EasterMonday
ITFestaDellaLiberazione = NewHoliday(time.April, 25)
ITFestaDelLavoro = NewHoliday(time.May, 1)
ITFestaDellaRepubblica = NewHoliday(time.June, 2)
ITFerragosto = NewHoliday(time.August, 15)
ITTuttiISanti = NewHoliday(time.November, 1)
ITImmacolata = NewHoliday(time.December, 8)
ITNatale = Christmas
ITSantoStefano = Christmas2
)
// AddItalianHolidays adds all Italian holidays to the Calendar
func AddItalianHolidays(c *Calendar) {
c.AddHoliday(
ITCapodanno,
ITEpifania,
ITPasquetta,
ITFestaDellaLiberazione,
ITFestaDelLavoro,
ITFestaDellaRepubblica,
ITFerragosto,
ITTuttiISanti,
ITImmacolata,
ITNatale,
ITSantoStefano,
)
}