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

◆ GetDaysInYear() [2/2]

override int System.Globalization.GregorianCalendar.GetDaysInYear ( int year,
int era )
inline

Definition at line 167 of file GregorianCalendar.cs.

168 {
169 if (era != 0 && era != 1)
170 {
171 throw new ArgumentOutOfRangeException("era", era, SR.ArgumentOutOfRange_InvalidEraValue);
172 }
173 if (!DateTime.IsLeapYear(year))
174 {
175 return 365;
176 }
177 return 366;
178 }

References System.SR.ArgumentOutOfRange_InvalidEraValue, System.DateTime.IsLeapYear(), and System.year.