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

◆ IsLeapDay() [2/2]

override bool System.Globalization.EastAsianLunisolarCalendar.IsLeapDay ( int year,
int month,
int day,
int era )
inlineinherited

Definition at line 446 of file EastAsianLunisolarCalendar.cs.

447 {
448 year = CheckYearMonthRange(year, month, era);
449 int num = InternalGetDaysInMonth(year, month);
450 if (day < 1 || day > num)
451 {
452 throw new ArgumentOutOfRangeException("day", day, SR.Format(SR.ArgumentOutOfRange_Day, num, month));
453 }
454 int yearInfo = GetYearInfo(year, 0);
455 if (yearInfo != 0)
456 {
457 return month == yearInfo + 1;
458 }
459 return false;
460 }
int GetYearInfo(int LunarYear, int Index)

References System.SR.ArgumentOutOfRange_Day, System.Globalization.EastAsianLunisolarCalendar.CheckYearMonthRange(), System.SR.Format(), System.Globalization.EastAsianLunisolarCalendar.GetYearInfo(), System.Globalization.EastAsianLunisolarCalendar.InternalGetDaysInMonth(), and System.year.