Date Time C#

using System;
using System.Globalization;
class DaylightChangesDemo
{
    static TimeZone localZone = TimeZone.CurrentTimeZone;
    static void CreateDaylightTime( int year )
    {
        DaylightTime daylight = localZone.GetDaylightChanges( year );
        Console.WriteLine( daylight);
    } 
    static void Main( )
    {
        CreateDaylightTime( 2005 );
    } 
}