Skip to content

Commit

Permalink
Merge pull request #32470 from rwestMSFT/rw-1121-fix-340866
Browse files Browse the repository at this point in the history
Refresh sys.time_zone_info (UUF 340866)
  • Loading branch information
JamesJBarnett authored Nov 25, 2024
2 parents d02be93 + a795246 commit 2989b00
Showing 1 changed file with 28 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: "sys.time_zone_info (Transact-SQL)"
description: sys.time_zone_info (Transact-SQL)
description: sys.time_zone_info returns information about supported time zones.
author: rwestMSFT
ms.author: randolphwest
ms.date: "08/06/2018"
ms.date: 11/25/2024
ms.service: sql
ms.subservice: system-objects
ms.topic: "reference"
Expand All @@ -16,22 +16,33 @@ helpviewer_keywords:
- "sys.time_zone_info system table"
dev_langs:
- "TSQL"
monikerRange: "=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current||=fabric"
monikerRange: "=azure-sqldw-latest || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric"
---
# sys.time_zone_info (Transact-SQL)

[!INCLUDE [sqlserver2016-asdb-asdbmi-asa-fabricse-fabricdw](../../includes/applies-to-version/sqlserver2016-asdb-asdbmi-asa-fabricse-fabricdw.md)]

Returns information about supported time zones. All time zones installed on the computer are stored in the following registry hive:
`KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones`.

|Column name|Data type|Description|
|-----------------|---------------|-----------------|
|**name**|**sysname**|Name of the time zone in Windows standard format. For example, **Cen. Australia Standard Time** or **Central European Standard Time**.|
|**current_utc_offset**|**nvarchar(12)**|Current offset to UTC. For example, **+01:00** or **-07:00**.|
|**is_currently_dst**|**bit**|True if currently observing daylight savings time.|

## See Also
[GETUTCDATE (Transact-SQL)](../../t-sql/functions/getutcdate-transact-sql.md)
[AT TIME ZONE (Transact-SQL)](../../t-sql/queries/at-time-zone-transact-sql.md)
[Date and Time Data Types and Functions (Transact-SQL)](../../t-sql/functions/date-and-time-data-types-and-functions-transact-sql.md)
[Server-wide Configuration Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/server-wide-configuration-catalog-views-transact-sql.md)
`sys.time_zone_info` returns information about supported time zones.

| Column name | Data type | Description |
| --- | --- | --- |
| `name` | **sysname** | Name of the time zone in Windows standard format. For example, `Cen. Australia Standard Time` or `Central European Standard Time`. |
| `current_utc_offset` | **nvarchar(12)** | Current offset to UTC. For example, `+01:00` or `-07:00`. |
| `is_currently_dst` | **bit** | True if currently observing daylight savings time. |

## Remarks

All time zones installed on the computer are stored in the following registry hive:

- `KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones`.

## Permissions

Any user with `CONNECT` permissions can access this system catalog view.

## Related content

- [GETUTCDATE (Transact-SQL)](../../t-sql/functions/getutcdate-transact-sql.md)
- [AT TIME ZONE (Transact-SQL)](../../t-sql/queries/at-time-zone-transact-sql.md)
- [Date and time data types and functions (Transact-SQL)](../../t-sql/functions/date-and-time-data-types-and-functions-transact-sql.md)
- [Server-wide Configuration Catalog Views (Transact-SQL)](server-wide-configuration-catalog-views-transact-sql.md)

0 comments on commit 2989b00

Please sign in to comment.