Returns the daylight saving time period for a particular year.
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 ); } }