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); }
/// <summary> /// Gets the day of the year. /// </summary> /// <returns></returns> public int GetDayOfYear() { return(hc.GetDayOfYear(dt)); }