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

◆ ValidateTransitionTime()

static void System.TimeZoneInfo.TransitionTime.ValidateTransitionTime ( DateTime timeOfDay,
int month,
int week,
int day,
DayOfWeek dayOfWeek )
inlinestaticprivate

Definition at line 846 of file TimeZoneInfo.cs.

847 {
848 if (timeOfDay.Kind != 0)
849 {
850 throw new ArgumentException(SR.Argument_DateTimeKindMustBeUnspecified, "timeOfDay");
851 }
853 {
854 throw new ArgumentOutOfRangeException("month", SR.ArgumentOutOfRange_MonthParam);
855 }
856 if (day < 1 || day > 31)
857 {
858 throw new ArgumentOutOfRangeException("day", SR.ArgumentOutOfRange_DayParam);
859 }
860 if (week < 1 || week > 5)
861 {
862 throw new ArgumentOutOfRangeException("week", SR.ArgumentOutOfRange_Week);
863 }
865 {
866 throw new ArgumentOutOfRangeException("dayOfWeek", SR.ArgumentOutOfRange_DayOfWeek);
867 }
869 if (year != 1 || month2 != 1 || day2 != 1 || timeOfDay.Ticks % 10000 != 0L)
870 {
871 throw new ArgumentException(SR.Argument_DateTimeHasTicks, "timeOfDay");
872 }
873 }

References System.SR.Argument_DateTimeHasTicks, System.SR.Argument_DateTimeKindMustBeUnspecified, System.SR.ArgumentOutOfRange_DayOfWeek, System.SR.ArgumentOutOfRange_DayParam, System.SR.ArgumentOutOfRange_MonthParam, System.SR.ArgumentOutOfRange_Week, System.L, and System.year.

Referenced by System.TimeZoneInfo.TransitionTime.TransitionTime(), and System.TimeZoneInfo.TransitionTime.OnDeserialization().