1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
7 public readonly partial struct DateTime
9 private static unsafe bool SystemSupportsLeapSeconds()
11 Interop
.NtDll
.SYSTEM_LEAP_SECOND_INFORMATION slsi
;
13 return Interop
.NtDll
.NtQuerySystemInformation(
14 Interop
.NtDll
.SystemLeapSecondInformation
,
16 sizeof(Interop
.NtDll
.SYSTEM_LEAP_SECOND_INFORMATION
),
17 null) == 0 && slsi
.Enabled
;