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

◆ DateTimeOffset() [5/8]

System.DateTimeOffset.DateTimeOffset ( int year,
int month,
int day,
int hour,
int minute,
int second,
TimeSpan offset )
inline

Definition at line 116 of file DateTimeOffset.cs.

117 {
119 int num = second;
120 if (second == 60 && DateTime.s_systemSupportsLeapSeconds)
121 {
122 second = 59;
123 }
124 _dateTime = ValidateDate(new DateTime(year, month, day, hour, minute, second), offset);
126 {
127 throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond);
128 }
129 }
static DateTime ValidateDate(DateTime dateTime, TimeSpan offset)
static short ValidateOffset(TimeSpan offset)
readonly short _offsetMinutes
readonly DateTime _dateTime
static unsafe bool IsValidTimeWithLeapSeconds(int year, int month, int day, int hour, int minute, DateTimeKind kind)
Definition DateTime.cs:1487
static readonly bool s_systemSupportsLeapSeconds
Definition DateTime.cs:43

References System.DateTimeOffset._dateTime, System.DateTimeOffset._offsetMinutes, System.SR.ArgumentOutOfRange_BadHourMinuteSecond, System.DateTimeOffset.DateTime, System.DateTime.Day, System.DateTime.Hour, System.DateTime.IsValidTimeWithLeapSeconds(), System.DateTime.Minute, System.DateTime.Month, System.offset, System.DateTime.s_systemSupportsLeapSeconds, System.DateTimeOffset.ValidateDate(), System.DateTimeOffset.ValidateOffset(), System.DateTime.Year, and System.year.