

This duration is usually 1 hour, but it can be 30 or 45 minutes, depending on time zone. When the clock's set ahead, there's a gap in local time equal to the duration of the clock adjustment.

RemarksĪT TIME ZONE applies specific rules for converting input values in smalldatetime, datetime, and datetime2 data types that fall into an interval affected by a DST change: The datetimeoffset value in the target time zone. A list of installed time zones is also exposed through the sys.time_zone_info (Transact-SQL) view. Time zones installed on the computer are stored in the following registry hive: KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones.
ASIA TIME ZONES WINDOWS
SQL Server relies on time zones that are stored in the Windows Registry. Is an expression that can be resolved to a smalldatetime, datetime, datetime2, or datetimeoffset value. Transact-SQL Syntax Conventions Syntax inputdate AT TIME ZONE timezone If inputdate is provided as a datetimeoffset value, then AT TIME ZONE clause converts it into the target time zone using the time zone conversion rules.ĪT TIME ZONE implementation relies on a Windows mechanism to convert datetime values across time zones. When inputdate is provided without offset information, the function applies the offset of the time zone assuming that inputdate is in the target time zone. Converts an inputdate to the corresponding datetimeoffset value in the target time zone.
