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

◆ ToFourDigitYear()

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

Reimplemented from System.Globalization.Calendar.

Definition at line 176 of file JapaneseCalendar.cs.

177 {
178 if (year <= 0)
179 {
180 throw new ArgumentOutOfRangeException("year", year, SR.ArgumentOutOfRange_NeedPosNum);
181 }
182 if (year > _helper.MaxYear)
183 {
184 throw new ArgumentOutOfRangeException("year", year, SR.Format(SR.ArgumentOutOfRange_Range, 1, _helper.MaxYear));
185 }
186 return year;
187 }

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