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

◆ ToDateTime() [2/2]

override DateTime System.Globalization.GregorianCalendar.ToDateTime ( int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int era )
inline

Definition at line 291 of file GregorianCalendar.cs.

292 {
293 if (era != 0 && era != 1)
294 {
295 throw new ArgumentOutOfRangeException("era", era, SR.ArgumentOutOfRange_InvalidEraValue);
296 }
297 return new DateTime(year, month, day, hour, minute, second, millisecond);
298 }

References System.SR.ArgumentOutOfRange_InvalidEraValue, System.DateTime, and System.year.