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

FixedToEthiopian() private static méthode

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.
Résultat 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);
        }