Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CheckYearMonthRange()

static void System.Globalization.HijriCalendar.CheckYearMonthRange ( int year,
int month,
int era )
inlinestaticpackage

Definition at line 118 of file HijriCalendar.cs.

119 {
120 CheckYearRange(year, era);
121 if (year == 9666 && month > 4)
122 {
123 throw new ArgumentOutOfRangeException("month", month, SR.Format(SR.ArgumentOutOfRange_Range, 1, 4));
124 }
125 if (month < 1 || month > 12)
126 {
127 ThrowHelper.ThrowArgumentOutOfRange_Month(month);
128 }
129 }
static void CheckYearRange(int year, int era)

References System.SR.ArgumentOutOfRange_Range, System.Globalization.HijriCalendar.CheckYearRange(), System.SR.Format(), System.ThrowHelper.ThrowArgumentOutOfRange_Month(), and System.year.

Referenced by System.Globalization.HijriCalendar.GetDaysInMonth(), and System.Globalization.HijriCalendar.IsLeapMonth().