Gets the time zone identifier.
using System; using System.Collections.ObjectModel; using System.Collections.Generic; public class Example { public static void Main() { ReadOnlyCollection<TimeZoneInfo> zones = TimeZoneInfo.GetSystemTimeZones(); Console.WriteLine("The local system has the following {0} time zones", zones.Count); foreach (TimeZoneInfo zone in zones) Console.WriteLine(zone.Id); } }