public AU_ACT() { Code = "AU-ACT"; Names = NamesBuilder.Make.Add(Langue.EN, "Australian Capital Territory").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Monday).In(March), Names = NamesBuilder.Make.Add(Langue.EN, "Canberra Day").AsDictionary() }, new GregorianRule() { Key = "EASTER", Type = Public, Overrides = Overrides.Type }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).Before(October), Names = NamesBuilder.Make.Add(Langue.EN, "Family & Community Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(October), Names = NamesBuilder.Make.Add(Langue.EN, "Labour Day").AsDictionary() } }; }
public CH_NW() { Code = "CH-NW"; Names = NamesBuilder.Make.Add(Langue.DE, "Kanton Nidwalden").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The19th), Names = NamesBuilder.Make.Add(Langue.DE, "Josefstag") .Add(Langue.IT, "San Giuseppe").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CorpusChristi, Names = NamesBuilder.Make.Add(Langue.DE, "Fronleichnam") .Add(Langue.FR, "la Fête-Dieu") .Add(Langue.IT, "Corpus Domini").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.DE, "Allerheiligen") .Add(Langue.FR, "Toussaint") .Add(Langue.IT, "Ognissanti").AsDictionary() } }; }
public CA_AB() { Code = "CA-AB"; Names = NamesBuilder.Make.Add(Langue.EN, "Alberta").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Movable(Third, Monday).After("02-01"), Names = NamesBuilder.Make.Add(Langue.EN, "Family Day") .Add(Langue.FR, "Fête de la famille").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.EN, "Easter Monday") .Add(Langue.FR, "Lundi de Pâques").AsDictionary(), Type = Optional }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).After("08-01"), Names = NamesBuilder.Make.Add(Langue.EN, "Heritage Day") .Add(Langue.FR, "Fête du patrimoine").AsDictionary(), Type = Optional }, }; }
public GB_NIR() { Code = "GB-NIR"; Names = NamesBuilder.Make.Add(Langue.EN, "Northern Ireland").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The17th), Names = NamesBuilder.Make.Add(Langue.EN, "St Patrick's Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Substitute.Fix(On.March.The17th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday), Names = NamesBuilder.Make.Add(Langue.EN, "St Patrick's Day").AsDictionary(), Substitute = true }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.July.The12th), Names = NamesBuilder.Make.Add(Langue.EN, "Battle of the Boyne, Orangemen’s Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Substitute.Fix(On.July.The12th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday), Names = NamesBuilder.Make.Add(Langue.EN, "Battle of the Boyne").AsDictionary(), Substitute = true } }; }
public CH_LU() { Code = "CH-LU"; Names = NamesBuilder.Make.Add(Langue.DE, "Kanton Luzern").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The19th), Names = NamesBuilder.Make.Add(Langue.DE, "Josefstag") .Add(Langue.IT, "San Giuseppe").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CorpusChristi, Names = NamesBuilder.Make.Add(Langue.DE, "Fronleichnam") .Add(Langue.FR, "la Fête-Dieu") .Add(Langue.IT, "Corpus Domini").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.DE, "Mariä Himmelfahrt") .Add(Langue.FR, "Assomption") .Add(Langue.IT, "Ferragosto").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.DE, "Allerheiligen") .Add(Langue.FR, "Toussaint") .Add(Langue.IT, "Ognissanti").AsDictionary() } }; }
public BA_BIH() { Code = "BA-BIH"; Names = NamesBuilder.Make.Add(Langue.EN, "Federation of Bosnia and Herzegovina").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The1st), Names = NamesBuilder.Make .Add(Langue.BS, "Dan nezavisnosti") .Add(Langue.HR, "Dan neovisnosti") .Add(Langue.SR, "Дан независности").AsDictionary() }, new GregorianRule() { Key = "NOV25", Expression = ExpressionTree.Date.Fix(On.November.The25th), Names = NamesBuilder.Make.Add(Langue.BS, "Dan državnosti").AsDictionary() } }; Regions = new ListRegion() { Parent = this, Langues = Langues, Container = { new BA_BIH_W() } }.Initialize(x => x.Init()); }
public CA_PE() { Code = "CA-PE"; Names = NamesBuilder.Make.Add(Langue.EN, "Prince Edward Island").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Movable(Third, Monday).After("02-01"), Names = NamesBuilder.Make.Add(Langue.EN, "Islander Day") .Add(Langue.FR, "Fête des Insulaires").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.EN, "Easter Monday") .Add(Langue.FR, "Lundi de Pâques").AsDictionary(), Type = Optional }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Third, Friday).After("08-01"), Names = NamesBuilder.Make.Add(Langue.EN, "Gold Cup Parade Day") .Add(Langue.FR, "Défilé de la Coupe d'or").AsDictionary() } }; }
public DE_BB() { Code = "DE-BB"; Names = NamesBuilder.Make.Add(Langue.DE, "Brandenburg").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Key = "Easter", Type = Public, Overrides = Overrides.Type }, new GregorianRule() { Key = "Pentecost", Type = Public, Overrides = Overrides.Type }, new GregorianRule() { Key = "OCT31", Expression = ExpressionTree.Date.Fix(On.October.The31st), Overrides = Overrides.Expression } }; }
public DE_TH() { Code = "DE-TH"; Names = NamesBuilder.Make.Add(Langue.DE, "Thüringen").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Key = "CorpusChristi", Expression = ExpressionTree.Date.Catholic.CorpusChristi, Names = NamesBuilder.Make.Add(Langue.DE, "Fronleichnam").AsDictionary(), Type = Observance }, new GregorianRule() { Key = "OCT31", Expression = ExpressionTree.Date.Fix(On.October.The31st), Overrides = Overrides.Expression }, new GregorianRule() { Key = "DEC31", Type = Public, Overrides = Overrides.Type } }; Regions = new ListRegion() { Parent = this, Langues = Langues, Container = { new DE_TH_EIC(), new DE_TH_UH(), new DE_TH_WAK() } }.Initialize(x => x.Init()); }
public AU_TAS() { Code = "AU-TAS"; Names = NamesBuilder.Make.Add(Langue.EN, "Tasmania").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Monday).In(March), Names = NamesBuilder.Make.Add(Langue.EN, "Eight Hours Day").AsDictionary() }, new GregorianRule() { Key = "HOLYSATURDAY", Type = Observance, Overrides = Overrides.Type }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER +2"), Names = NamesBuilder.Make.Add(Langue.EN, "Easter Tuesday").AsDictionary(), Type = Optional, Note = "Public service employees or contract dependent" } }; Regions = new ListRegion() { Parent = this, Langues = Langues, Container = { new AU_TAS_H(), new AU_TAS_NH() } }.Initialize(x => x.Init()); }
public AU_VIC() { Code = "AU-VIC"; Names = NamesBuilder.Make.Add(Langue.EN, "Victoria").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Monday).In(March), Names = NamesBuilder.Make.Add(Langue.EN, "Labour Day").AsDictionary() }, new GregorianRule() { Key = "EASTER", Type = Public, Overrides = Overrides.Type }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Friday).Before("10-04"), Names = NamesBuilder.Make.Add(Langue.EN, "Grand Final Friday").AsDictionary(), Note = "Date might differ as dependent on AFL schedule" } }; Regions = new ListRegion() { Parent = this, Langues = Langues, Container = { new AU_VIC_M() } }.Initialize(x => x.Init()); }
public AU_SA() { Code = "AU-SA"; Names = NamesBuilder.Make.Add(Langue.EN, "South Australia").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Monday).In(March), Names = NamesBuilder.Make.Add(Langue.EN, "March public holiday").AsDictionary() }, new GregorianRule() { Key = "DEC24", Expression = ExpressionTree.Date.Fix(On.December.The24th).StartAt("19:00"), Type = Public, Overrides = Overrides.Expression | Overrides.Type }, new GregorianRule() { Key = "DEC31", Expression = ExpressionTree.Date.Fix(On.December.The31st).StartAt("19:00"), Type = Public, Overrides = Overrides.Expression | Overrides.Type } }; }
public AU_QLD() { Code = "AU-QLD"; Names = NamesBuilder.Make.Add(Langue.EN, "Queensland").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(October).Every(1).Year.Since(2013).To(2016), Names = NamesBuilder.Make.Add(Langue.EN, "Labour Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(May).Every(1).Year.Since(2016), Names = NamesBuilder.Make.Add(Langue.EN, "Labour Day").AsDictionary() }, new GregorianRule() { Key = "2MOJUN", Expression = ExpressionTree.Date.Movable(Second, Monday).In(June).Every(1).Year.To(2016), Overrides = Overrides.Expression }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(October).Every(1).Year.Since(2016), Names = NamesBuilder.Make.Add(Langue.EN, "Queen's Birthday").AsDictionary() } }; }
public AU_NSW() { Code = "AU-NSW"; Names = NamesBuilder.Make.Add(Langue.EN, "New South Wales").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Key = "EASTER", Type = Public, Overrides = Overrides.Type }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(August), Names = NamesBuilder.Make.Add(Langue.EN, "Bank Holiday").AsDictionary(), Type = Bank }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(October), Names = NamesBuilder.Make.Add(Langue.EN, "Labour Day").AsDictionary() } }; }
public CH_AG() { Code = "CH-AG"; Names = NamesBuilder.Make.Add(Langue.DE, "Kanton Aargau").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The2nd), Names = NamesBuilder.Make.Add(Langue.DE, "Berchtoldstag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CorpusChristi, Names = NamesBuilder.Make.Add(Langue.DE, "Fronleichnam") .Add(Langue.FR, "la Fête-Dieu") .Add(Langue.IT, "Corpus Domini").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.DE, "Mariä Himmelfahrt") .Add(Langue.FR, "Assomption") .Add(Langue.IT, "Ferragosto").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.DE, "Allerheiligen") .Add(Langue.FR, "Toussaint") .Add(Langue.IT, "Ognissanti").AsDictionary() } }; }
public CH_VS() { Code = "CH-VS"; Names = NamesBuilder.Make.Add(Langue.DE, "Kanton Wallis").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The19th), Names = NamesBuilder.Make.Add(Langue.DE, "Josefstag") .Add(Langue.IT, "San Giuseppe").AsDictionary() }, new GregorianRule() { Key = "EASTER-2", IsEnable = false, Overrides = Overrides.IsEnable }, new GregorianRule() { Key = "EASTER+1", IsEnable = false, Overrides = Overrides.IsEnable }, new GregorianRule() { Key = "EASTER+50", IsEnable = false, Overrides = Overrides.IsEnable }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CorpusChristi, Names = NamesBuilder.Make.Add(Langue.DE, "Fronleichnam") .Add(Langue.FR, "la Fête-Dieu") .Add(Langue.IT, "Corpus Domini").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.DE, "Mariä Himmelfahrt") .Add(Langue.FR, "Assomption") .Add(Langue.IT, "Ferragosto").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.DE, "Allerheiligen") .Add(Langue.FR, "Toussaint") .Add(Langue.IT, "Ognissanti").AsDictionary() }, new GregorianRule() { Key = "DEC26", IsEnable = false, Overrides = Overrides.IsEnable } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="JE"/>. /// </summary> public JE() { Code = "JE"; Alpha3Code = "JEY"; Names = NamesBuilder.Make.Add(Langue.EN, "Jersey").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.EN); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.EN, "Good Friday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.EN, "Easter Monday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(May), Names = NamesBuilder.Make.Add(Langue.EN, "Early May Bank Holiday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The9th), Names = NamesBuilder.Make.Add(Langue.EN, "Liberation Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).Before(June), Names = NamesBuilder.Make.Add(Langue.EN, "Spring Bank Holiday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).Before(September), Names = NamesBuilder.Make.Add(Langue.EN, "Summer Bank Holiday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.EN, "Boxing Day").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="AE"/>. /// </summary> public AE() { Code = "AE"; Alpha3Code = "ARE"; Names = NamesBuilder.Make.Add(Langue.EN, "United Arab Emirates").Add(Langue.AR, "دولة الإمارات العربية المتحدة").AsDictionary(); DaysOff.Add(Sunday); Langues = new List <Langue>() { Langue.AR }; SupportedCalendar.AddRange(Gregorian, Hijri); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.AR, "رأس السنة الميلادية").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The2nd), Names = NamesBuilder.Make.Add(Langue.AR, "اليوم الوطني").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.Muharram.The1st).Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "رأس السنة الهجرية").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.Shawwal.The1st).StartAtMidnight.Duration.P3D().Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "عيد الفطر").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.DhuAlHijjah.The10th).StartAtMidnight.Duration.P3D().Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "عيد الأضحى").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.Rajab.The27th).Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "الإسراء والمعراج").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.Ramadan.The1st).Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "اليوم الأول من رمضان").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.RabiAlAwwal.The12th).Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "المولد النبويّ").AsDictionary() } }; }
public FR_YT() { Code = "FR-YT"; Names = NamesBuilder.Make.Add(Langue.FR, "Département et région d'outre-mer Mayotte").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.April.The27th), Names = NamesBuilder.Make.Add(Langue.FR, "Abolition de l'esclavage").AsDictionary() } }; }
public HR_19() { Code = "HR-19"; Names = NamesBuilder.Make.Add(Langue.EN, "Dubrovnik-Neretva").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.February.The3rd), Names = NamesBuilder.Make.Add(Langue.HR, "Sveti Vlaho").AsDictionary() } }; }
public HR_17() { Code = "HR-17"; Names = NamesBuilder.Make.Add(Langue.EN, "Split-Dalmatia").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The7th), Names = NamesBuilder.Make.Add(Langue.HR, "Sveti Duje").AsDictionary() } }; }
public MD_CU() { Code = "MD-CU"; Names = NamesBuilder.Make.Add(Langue.RO, "Chișinău").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.October.The14th), Names = NamesBuilder.Make.Add(Langue.RO, "Ziua capitalului").AsDictionary() } }; }
public FR_GF() { Code = "FR-GF"; Names = NamesBuilder.Make.Add(Langue.FR, "Département et région d'outre-mer Guyane").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The10th), Names = NamesBuilder.Make.Add(Langue.FR, "Abolition de l'esclavage").AsDictionary() } }; }
public MD_CA() { Code = "MD-CA"; Names = NamesBuilder.Make.Add(Langue.RO, "Cahul").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The21st), Names = NamesBuilder.Make.Add(Langue.RO, "Ziua Cahul").AsDictionary() } }; }
public AT_5() { Code = "AT-5"; Names = NamesBuilder.Make.Add(Langue.DE, "Land Salzburg").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.September.The24th), Names = NamesBuilder.Make.Add(Langue.DE_AT, "Rupert").AsDictionary() } }; }
public AT_4() { Code = "AT-4"; Names = NamesBuilder.Make.Add(Langue.DE, "Oberösterreich").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The4th), Names = NamesBuilder.Make.Add(Langue.DE_AT, "Florian").AsDictionary() } }; }
public AT_3() { Code = "AT-3"; Names = NamesBuilder.Make.Add(Langue.DE, "Niederösterreich").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The15th), Names = NamesBuilder.Make.Add(Langue.DE_AT, "Leopold").AsDictionary() } }; }
public AT_1() { Code = "AT-1"; Names = NamesBuilder.Make.Add(Langue.DE, "Burgenland").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The11th), Names = NamesBuilder.Make.Add(Langue.DE_AT, "Martinstag").AsDictionary() } }; }
public FR_RE() { Code = "FR-RE"; Names = NamesBuilder.Make.Add(Langue.FR, "Département et région d'outre-mer La Réunion").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The20th), Names = NamesBuilder.Make.Add(Langue.FR, "Abolition de l'esclavage").AsDictionary() } }; }
public CH_TG() { Code = "CH-TG"; Names = NamesBuilder.Make.Add(Langue.DE, "Kanton Thurgau").AsDictionary(); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The2nd), Names = NamesBuilder.Make.Add(Langue.DE, "Berchtoldstag").AsDictionary() } }; }