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

◆ GetDaysInMonth() [2/2]

override int System.Globalization.PersianCalendar.GetDaysInMonth ( int year,
int month,
int era )
inline

Definition at line 195 of file PersianCalendar.cs.

196 {
197 CheckYearMonthRange(year, month, era);
198 if (month == 10 && year == 9378)
199 {
200 return 13;
201 }
202 int num = s_daysToMonth[month] - s_daysToMonth[month - 1];
203 if (month == 12 && !IsLeapYear(year))
204 {
205 num--;
206 }
207 return num;
208 }
static void CheckYearMonthRange(int year, int month, int era)
override bool IsLeapYear(int year, int era)

References System.Globalization.PersianCalendar.CheckYearMonthRange(), System.Globalization.PersianCalendar.IsLeapYear(), System.Globalization.PersianCalendar.s_daysToMonth, and System.year.

Referenced by System.Globalization.PersianCalendar.AddMonths(), System.Globalization.PersianCalendar.IsLeapDay(), and System.Globalization.PersianCalendar.ToDateTime().