
The conversion process failed during conversion from the character string to the date and time, or to either of the two. Select datediff(day,convert(datetime,'1 08:59:60'),getdate())Īs a result of conversion from the varchar data type to the datetime data type, the value is set outside the range. When the leap second is handled as the date data type in the SQL Server create table leap_second( For more information, see the following "Reference information" section. Therefore, if a connection is established to SQL Server from an application that's running on an OS that supports the leap second, and the OS tries to set a leap second (data in which the second's value is 60) in the column and variable of the date data type, an error is returned.
#Microsoft leap windows
As with the Windows OS, SQL Server does not independently recognize the leap second.īe aware the date data type (for example, datetime) does not support the format in which the seconds value reaches 60 such as 08:59:60. Therefore, even if a one-second deviation occurs in the system time because of the leap second, it does not affect SQL Server operations. SQL Server does not use time data for managing internal operations such as transactions. For more information, see the following KB article:ĩ39322 Support boundary to configure the Windows Time service for high-accuracy environmentsĪs for the cluster configuration, it's same as with the OS: leap second processing is not performed. Leap second variations are handled cleanly, allowing for uninterrupted execution. The operating system is designed to handle time variations. The W32time clients correct their local clocks when they subsequently synchronize time from their upstream server.įor more information, see the following Microsoft Knowledge Base (KB) article:ĩ09614 How the Windows Time Service treats a leap secondĪdditionally, in the Windows Time Service, it's not always possible to prevent the occurrence of marginal time differences, such as one second. The Windows Time Synchronization Service (W32Time) does not insert a leap second, and instead proceeds with the usual time synchronization process.ĭuring the brief period that follows the introduction of a leap second on an upstream NTP server (including W32time Server), a time difference of about one second occurs between that upstream NTP server and the W32time clients that synchronize from it. Windows Time Service does not implement a leap second even though it passes through the Leap Indicator (LI) flag from the NTP server to the server that hosts the Windows Time Service and the down-level clients that synchronize from it.
#Microsoft leap iso
Therefore, 08:59:60 is processed as 09:00:00, per the ISO 8601 format.Ībout the Time Synchronization Service (Windows Time Service) For example, year, month, date, and time information in the following format is not supported by the Windows OS:

Leap second processing is not handled separately by the Windows operating system (OS). However, this article does not apply strictly to these or later operating systems.
#Microsoft leap update
Windows Server 2019 and Windows 10 October 2018 Update do support leap seconds in the platform.
