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

◆ ToFourDigitYear()

override int System.Globalization.HebrewCalendar.ToFourDigitYear ( int year)
inlinevirtual

Reimplemented from System.Globalization.Calendar.

Definition at line 565 of file HebrewCalendar.cs.

566 {
567 if (year < 0)
568 {
569 throw new ArgumentOutOfRangeException("year", year, SR.ArgumentOutOfRange_NeedNonNegNum);
570 }
571 if (year < 100)
572 {
573 return base.ToFourDigitYear(year);
574 }
575 if (year > 5999 || year < 5343)
576 {
577 throw new ArgumentOutOfRangeException("year", year, SR.Format(SR.ArgumentOutOfRange_Range, 5343, 5999));
578 }
579 return year;
580 }

References System.SR.ArgumentOutOfRange_NeedNonNegNum, System.SR.ArgumentOutOfRange_Range, System.SR.Format(), and System.year.