Last active
October 13, 2020 23:31
-
-
Save georgekosmidis/0c5e62fe286d15997c0c9a3e6e0e8547 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Get all Greek holidays for requested year | |
/// </summary> | |
/// <param name="year">Year of holidays</param> | |
/// <returns>List of dates of all public holidays, except weekends</returns> | |
public static List<DateTime> GreekHolidays(int year) | |
{ | |
var easter = GetOrthodoxEaster(year); | |
var holidays = new List<DateTime>(); | |
holidays.Add(new DateTime(year, 1, 1)); //prwtoxronia | |
holidays.Add(new DateTime(year, 1, 6)); //fwta | |
holidays.Add(easter.AddDays(-48)); //kathara deytera | |
holidays.Add(new DateTime(year, 3, 25)); //25i martioy | |
holidays.Add(new DateTime(year, 5, 1)); //prwtomagia | |
holidays.Add(easter.AddDays(-2)); //megali paraskevi | |
holidays.Add(easter.AddDays(-1)); //megali savvato | |
holidays.Add(easter); //pasxa | |
holidays.Add(easter.AddDays(1)); //deyterh mera | |
holidays.Add(easter.AddDays(50)); //agiou pnevmatos | |
holidays.Add(new DateTime(year, 8, 15)); //koimisi theotokou | |
holidays.Add(new DateTime(year, 10, 28)); //28i oktovriou | |
holidays.Add(new DateTime(year, 12, 25)); //xristougenna | |
holidays.Add(new DateTime(year, 12, 26)); //deyterh mera | |
return holidays; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment