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

CheckLeapYear() protected static method

Checks the leap year.
protected static CheckLeapYear ( int gregorianYear, int gregorianMonth ) : bool
gregorianYear int The gregorian year.
gregorianMonth int The gregorian month.
return bool
        protected static bool CheckLeapYear(int gregorianYear, int gregorianMonth)
        {
            int yr = GetEthiopianYear(gregorianYear, gregorianMonth);

            if ((yr % 4) == 0 && (yr % 100) != 0)
                return true;

            return false;
        }

Same methods

EthiopianDate::CheckLeapYear ( ) : bool