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

FixedToEthiopian() private static method

Fixes to ethiopian.
private static FixedToEthiopian ( int fixedDate, int &year, int &month, int &day ) : void
fixedDate int The fixed date.
year int The year.
month int The month.
day int The day.
return void
        private static void FixedToEthiopian(int fixedDate, ref int year, ref int month, ref int day)
        {
            year = (int)Math.Floor((double)(((double)((4 * (fixedDate - 0xaec)) + 0x5b7)) / 1461.0));
            month = ((int)Math.Floor((double)(((double)(fixedDate - EthiopianToFixed(year, 1, 1))) / 30.0))) + 1;
            day = (fixedDate + 1) - EthiopianToFixed(year, month, 1);
        }