System C# by API

using System;
public class MainClass {
    public static void Main() {
        TimeZone zone = TimeZone.CurrentTimeZone;
        DateTime dt1 = new DateTime(2008, 1, 1);
        DateTime dt2 = new DateTime(2008, 6, 1);
        Console.WriteLine(zone.IsDaylightSavingTime(dt1));
        Console.WriteLine(zone.IsDaylightSavingTime(dt2));
        Console.WriteLine(zone.GetUtcOffset(dt1));
        Console.WriteLine(zone.GetUtcOffset(dt2));
    }
}