Cats.Helpers.EthiopianDate.GetEthiopianYear C# (CSharp) 메소드

GetEthiopianYear() 개인적인 정적인 메소드

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