Skip to main content

Get a complete list of all the time zones referenced by the id expected in TimeZoneInfo.FindTimeZoneById().

using System;

namespace TimeZoneIds
{
    class Program
    {
        static void Main(string[] args)
        {
            foreach (TimeZoneInfo z in TimeZoneInfo.GetSystemTimeZones())
            {
                Console.WriteLine(
                    "Id: {0}, DisplayName: {1}, DaylightName: {2}, StandardName: {3}, DaylightName: {4}, BaseUtcOffset: {5}",
                    z.Id,
                    z.DisplayName,
                    z.DaylightName,
                    z.StandardName,
                    z.DaylightName,
                    z.BaseUtcOffset
                );
            }
        }
    }
}