Cats.Helpers.EthiopianDate.GetEthiopianYear C# (CSharp) Méthode

GetEthiopianYear() private static méthode

Returns Ethiopian year as an output. Takes the gregorian date as input.
private static GetEthiopianYear ( int gregorianYear, int gregorianMonth ) : int
gregorianYear int
gregorianMonth int
Résultat int
        private static int GetEthiopianYear(int gregorianYear, int gregorianMonth)
        {
            return (gregorianMonth >= 9 && gregorianMonth <= 12) ? gregorianYear - 7 : gregorianYear - 8;
        }