Exemplo n.º 1
0
        private int JalaliToHejriDayInyer(string date)
        {
            DateTime herjriGhamriDate = JulianDate(date);
            var      hejriMonthNumber = HejriGhamariCalendar.GetMonth(herjriGhamriDate);
            var      hejriDayInyer    = HejriGhamariCalendar.GetDayOfYear(herjriGhamriDate);

            if (hejriMonthNumber > 9)
            {
                if (RamazandDaysNumber == 30)
                {
                    hejriDayInyer--;
                }
            }
            return(hejriDayInyer);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the day of the year.
 /// </summary>
 /// <returns></returns>
 public int GetDayOfYear()
 {
     return(hc.GetDayOfYear(dt));
 }