DaylightTime Class
Defines the period of daylight saving time.
Assembly: mscorlib (in mscorlib.dll)
The DaylightTime type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | Delta | Gets the TimeSpan that represents the difference between the standard time and the daylight saving time. |
![]() ![]() | End | Gets the DateTime that represents the date and time when the daylight saving period ends. |
![]() ![]() | Start | Gets the DateTime that represents the date and time when the daylight saving period begins. |
| Name | Description | |
|---|---|---|
![]() ![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Daylight saving time is a period during the year when the time is advanced, usually by an hour, to take advantage of the extended daylight hours. At the end of the period, the time is set back to the standard time.
The DaylightTime class is used extensively by members of the System.TimeZone class.
The following code example uses the TimeZone.GetDaylightChanges(Int32) method to return the daylight saving time period and offset for selected years.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
