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

◆ ToFourDigitYear()

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

Reimplemented from System.Globalization.Calendar.

Definition at line 150 of file TaiwanCalendar.cs.

151 {
152 if (year <= 0)
153 {
154 throw new ArgumentOutOfRangeException("year", year, SR.ArgumentOutOfRange_NeedPosNum);
155 }
156 if (year > _helper.MaxYear)
157 {
158 throw new ArgumentOutOfRangeException("year", year, SR.Format(SR.ArgumentOutOfRange_Range, 1, _helper.MaxYear));
159 }
160 return year;
161 }
readonly GregorianCalendarHelper _helper

References System.Globalization.TaiwanCalendar._helper, System.SR.ArgumentOutOfRange_NeedPosNum, System.SR.ArgumentOutOfRange_Range, System.SR.Format(), System.Globalization.GregorianCalendarHelper.MaxYear, and System.year.