ConvertGregorianToHijri() private method

private ConvertGregorianToHijri ( System.DateTime time, int &HijriYear, int &HijriMonth, int &HijriDay ) : void
time System.DateTime
HijriYear int
HijriMonth int
HijriDay int
return void
        // Token: 0x06002ED7 RID: 11991 RVA: 0x000B3DB8 File Offset: 0x000B1FB8
        internal virtual int GetDatePart(DateTime time, int part)
        {
            int  num   = 0;
            int  num2  = 0;
            int  num3  = 0;
            long ticks = time.Ticks;

            UmAlQuraCalendar.CheckTicksRange(ticks);
            UmAlQuraCalendar.ConvertGregorianToHijri(time, ref num, ref num2, ref num3);
            if (part == 0)
            {
                return(num);
            }
            if (part == 2)
            {
                return(num2);
            }
            if (part == 3)
            {
                return(num3);
            }
            if (part == 1)
            {
                return((int)(UmAlQuraCalendar.GetAbsoluteDateUmAlQura(num, num2, num3) - UmAlQuraCalendar.GetAbsoluteDateUmAlQura(num, 1, 1) + 1L));
            }
            throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_DateTimeParsing"));
        }