This documentation is archived and is not being maintained.

TimeZone.GetDaylightChanges Method

Updated: March 2012

Returns the daylight saving time period for a particular year.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public abstract DaylightTime GetDaylightChanges(
	int year


Type: System.Int32

The year that the daylight saving time period applies to.

Return Value

Type: System.Globalization.DaylightTime
A System.Globalization.DaylightTime object that contains the start and end date for daylight saving time in year.


year is less than 1 or greater than 9999.

Only one daylight saving time period per year is supported.

Because the TimeZone class supports only one daylight saving time adjustment rule, the GetDaylightChanges method applies the current adjustment rule to any year, regardless of whether the adjustment rule actually applies to that year. Assuming that the operating system itself has accurate data for a particular year, a more accurate result is available by working with the array of TimeZoneInfo.AdjustmentRule objects returned by the TimeZoneInfo.GetAdjustmentRules method. The Start, End, and Delta properties correspond to the TimeZoneInfo.AdjustmentRule.DateStart, TimeZoneInfo.AdjustmentRule.DateEnd, and TimeZoneInfo.AdjustmentRule.DaylightDelta properties.

If daylight saving time is not used in the current time zone, the return value is a DaylightTime object, where the value of Start and End is DateTime.MinValue, and the value of DaylightTime.Delta is a TimeSpan initialized to 0 ticks.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0




March 2012

Removed the example.

Content bug fix.

May 2010

Added information about equivalent TimeZoneInfo.AdjustmentRule members.

Information enhancement.