SQL SERVER – List All Available TimeZone

sys.time_zone_info lists timezone names and their current offsets. My SQL Server 2019 environment returned 141 rows.

Current fabric profiles are inspected beside separate preserved seasonal layers.

SELECT name,current_utc_offset,is_currently_dst FROM sys.time_zone_info ORDER BY name;
SELECT COUNT(*) AS AvailableTimeZones FROM sys.time_zone_info;

Counts depend on installed definitions and environment rather than only engine version. Query the current instance. This catalog has been available since SQL Server 2016.

current_utc_offset and is_currently_dst describe present state. They don’t give the applicable offset for every historical or future date. Use AT TIME ZONE with the intended named zone for date-specific conversion.

Operating-system updates can change zone definitions. Daylight-saving transitions produce ambiguous or nonexistent local times. Store and interpret timestamps deliberately. The international developer question remains useful with those distinctions.

Reference: Supported timezone catalog columns.

Related reading

A current timezone offset is not every date offset, it is present-state information under installed rules.

Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.


Discover more from SQL Authority with Pinal Dave

Subscribe to get the latest posts sent to your email.

SQL DateTime, SQL Scripts, SQL Server
Previous Post
Flush Authentication Cache: Who Can Run DBCC FLUSHAUTHCACHE
Next Post
IGNORE NULLS in SQL Server 2022: Carrying the Last Known Value Forward

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.