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

◆ GetGregorianYear()

override int System.Globalization.ChineseLunisolarCalendar.GetGregorianYear ( int year,
int era )
inlinepackage

Definition at line 251 of file ChineseLunisolarCalendar.cs.

252 {
253 if (era != 0 && era != 1)
254 {
255 throw new ArgumentOutOfRangeException("era", era, SR.ArgumentOutOfRange_InvalidEraValue);
256 }
257 if (year < 1901 || year > 2100)
258 {
259 throw new ArgumentOutOfRangeException("year", year, SR.Format(SR.ArgumentOutOfRange_Range, 1901, 2100));
260 }
261 return year;
262 }

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