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

◆ IsValidTimeWithLeapSeconds()

static unsafe bool System.DateTime.IsValidTimeWithLeapSeconds ( int year,
int month,
int day,
int hour,
int minute,
DateTimeKind kind )
inlinestaticpackage

Definition at line 1487 of file DateTime.cs.

1488 {
1490 sYSTEMTIME.Year = (ushort)year;
1491 sYSTEMTIME.Month = (ushort)month;
1493 sYSTEMTIME.Day = (ushort)day;
1494 sYSTEMTIME.Hour = (ushort)hour;
1495 sYSTEMTIME.Minute = (ushort)minute;
1496 sYSTEMTIME.Second = 60;
1500 {
1501 return true;
1502 }
1503 System.Runtime.CompilerServices.Unsafe.SkipInit(out ulong num);
1504 if (kind != DateTimeKind.Local && Interop.Kernel32.SystemTimeToFileTime(&sYSTEMTIME, &num) != 0)
1505 {
1506 return true;
1507 }
1508 return false;
1509 }
static unsafe BOOL TzSpecificLocalTimeToSystemTime(IntPtr lpTimeZoneInformation, SYSTEMTIME *lpLocalTime, SYSTEMTIME *lpUniversalTime)
static unsafe BOOL SystemTimeToFileTime(SYSTEMTIME *lpSystemTime, ulong *lpFileTime)

References System.Runtime.Serialization.Dictionary, Interop.Kernel32.SystemTimeToFileTime(), Interop.Kernel32.TzSpecificLocalTimeToSystemTime(), System.year, and System.IntPtr.Zero.

Referenced by System.DateTimeOffset.DateTimeOffset(), System.DateTimeOffset.DateTimeOffset(), System.DateTimeOffset.DateTimeOffset(), System.DateTime.TryCreate(), and System.DateTime.ValidateLeapSecond().