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

◆ IsValidDay()

static bool Internal.Cryptography.Helpers.IsValidDay ( this Calendar calendar,
int year,
int month,
int day,
int era )
inlinestatic

Definition at line 124 of file Helpers.cs.

125 {
126 if (calendar.IsValidMonth(year, month, era) && day >= 1)
127 {
128 return day <= calendar.GetDaysInMonth(year, month, era);
129 }
130 return false;
131 }

References System.Globalization.Calendar.GetDaysInMonth(), System.Globalization.Calendar.IsValidMonth(), and System.year.