Time zone ID

Get a TimeZoneInfo by calling FindSystemTimeZoneById with the zone ID.


using System;
using System.Text;
using System.Globalization;
class Sample
{
    public static void Main()
    {
        TimeZoneInfo wa = TimeZoneInfo.FindSystemTimeZoneById("W. Australia Standard Time");

        Console.WriteLine(wa.Id);
        Console.WriteLine(wa.DisplayName);
        Console.WriteLine(wa.BaseUtcOffset);
        Console.WriteLine(wa.SupportsDaylightSavingTime);
    }
}

The output:


W. Australia Standard Time
(UTC+08:00) Perth
08:00:00
True
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.