Documentation ¶
Overview ¶
Package se provides holiday definitions for Sweden.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Nyarsdagen represents New Year's Day on 1-Jan Nyarsdagen = aa.NewYear.Clone(&cal.Holiday{Name: "Nyårsdagen", Type: cal.ObservancePublic}) // TrettondedagJul represents Epiphany on 6-Jan TrettondedagJul = aa.Epiphany.Clone(&cal.Holiday{Name: "Trettondedag jul", Type: cal.ObservancePublic}) // Langfredagen represents Good Friday on the Friday before Easter Langfredagen = aa.GoodFriday.Clone(&cal.Holiday{Name: "Långfredagen", Type: cal.ObservancePublic}) // Paskdagen represents the day of Easter Paskdagen = aa.Easter.Clone(&cal.Holiday{Name: "Påskdagen", Type: cal.ObservancePublic}) // AnnandagPask represents Easter Monday on the day after Easter AnnandagPask = aa.EasterMonday.Clone(&cal.Holiday{Name: "Annandag påsk", Type: cal.ObservancePublic}) // ForstaMaj represents Labour Day on 1-May ForstaMaj = aa.WorkersDay.Clone(&cal.Holiday{Name: "Första Maj", Type: cal.ObservancePublic}) // KristiHimmelfardsdag represents Ascension Day on the 39th day after Easter KristiHimmelfardsdag = aa.AscensionDay.Clone(&cal.Holiday{Name: "Kristi himmelsfärds dag", Type: cal.ObservancePublic}) // Pingstdagen represents Pentecost Sunday on the 49th day after Easter Pingstdagen = aa.Pentecost.Clone(&cal.Holiday{Name: "Pingstdagen", Type: cal.ObservancePublic}) // Nationaldagen represents National Day of Sweden on 6-Jun Nationaldagen = &cal.Holiday{ Name: "Sveriges nationaldag", Type: cal.ObservancePublic, Month: time.June, Day: 6, Func: cal.CalcDayOfMonth, } // Midsommarafton represents Midsummer's Eve on the day before Midsummer's Day Midsommarafton = &cal.Holiday{ Name: "Midsommarafton", Type: cal.ObservanceOther, Month: time.June, Day: 19, Offset: 1, Weekday: time.Friday, Func: cal.CalcWeekdayFrom, } // Midsommardagen represents Midsummer's Day on the first Saturday from 20-Jun Midsommardagen = &cal.Holiday{ Name: "Midsommardagen", Type: cal.ObservancePublic, Month: time.June, Day: 20, Offset: 1, Weekday: time.Saturday, Func: cal.CalcWeekdayFrom, } // AllaHelgonsDag represents All Saints' Day on the first Saturday from 31-Oct AllaHelgonsDag = &cal.Holiday{ Name: "Alla helgons dag", Type: cal.ObservancePublic, Month: time.October, Day: 31, Offset: 1, Weekday: time.Saturday, Func: cal.CalcWeekdayFrom, } // Julafton represents Christmas Eve on 24-Dec Julafton = &cal.Holiday{ Name: "Julafton", Type: cal.ObservanceOther, Month: time.December, Day: 24, Func: cal.CalcDayOfMonth, } // Juldagen represents Christmas Day on 25-Dec Juldagen = aa.ChristmasDay.Clone(&cal.Holiday{Name: "Juldagen", Type: cal.ObservancePublic}) // AnnandagJul represents the second day of Christmas on 26-Dec AnnandagJul = aa.ChristmasDay2.Clone(&cal.Holiday{Name: "Annandag jul", Type: cal.ObservancePublic}) // Nyarsafton represents New Year's Eve on 31-Dec Nyarsafton = &cal.Holiday{ Name: "Nyårsafton", Type: cal.ObservanceOther, Month: time.December, Day: 31, Func: cal.CalcDayOfMonth, } // Holidays provides a list of the standard national holidays Holidays = []*cal.Holiday{ Nyarsdagen, TrettondedagJul, Langfredagen, AnnandagPask, ForstaMaj, KristiHimmelfardsdag, Nationaldagen, Midsommarafton, Midsommardagen, AllaHelgonsDag, Julafton, Juldagen, AnnandagJul, Nyarsafton, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.