Cats.Helpers.EthiopianDate.EthiopianDayOfWeek C# (CSharp) Method

EthiopianDayOfWeek() public method

Ethiopians the day of week.
public EthiopianDayOfWeek ( int ethiopianYear, int ethiopianMonth, int ethiopianDay ) : DayOfWeek
ethiopianYear int The ethiopian year.
ethiopianMonth int The ethiopian month.
ethiopianDay int The ethiopian day.
return DayOfWeek
        public DayOfWeek EthiopianDayOfWeek(int ethiopianYear, int ethiopianMonth, int ethiopianDay)
        {
            //The input is in the ethiopian calendar.

            int i = (Math.Abs(EthiopianToFixed(ethiopianYear, ethiopianMonth, 1)) % 7);
            switch (i)
            {
                case 0:
                    return DayOfWeek.Sunday;

                case 1:
                    return DayOfWeek.Monday;

                case 2:
                    return DayOfWeek.Tuesday;

                case 3:
                    return DayOfWeek.Wednesday;

                case 4:
                    return DayOfWeek.Thursday;

                case 5:
                    return DayOfWeek.Friday;

                case 6:
                    return DayOfWeek.Saturday;
            }
            return DayOfWeek.Sunday;
        }