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

◆ ToFourDigitYear()

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

Reimplemented from System.Globalization.Calendar.

Definition at line 272 of file JulianCalendar.cs.

273 {
274 if (year < 0)
275 {
276 throw new ArgumentOutOfRangeException("year", year, SR.ArgumentOutOfRange_NeedNonNegNum);
277 }
278 if (year > MaxYear)
279 {
280 throw new ArgumentOutOfRangeException("year", year, SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, 1, MaxYear));
281 }
282 return base.ToFourDigitYear(year);
283 }

References System.SR.ArgumentOutOfRange_Bounds_Lower_Upper, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.SR.Format(), System.Globalization.JulianCalendar.MaxYear, and System.year.