Redigera

Dela via


TimeZoneInfo.AdjustmentRule.DaylightDelta Property

Definition

Gets the amount of time that is required to form the time zone's daylight saving time. This amount of time is added to the time zone's offset from Coordinated Universal Time (UTC).

public:
 property TimeSpan DaylightDelta { TimeSpan get(); };
public TimeSpan DaylightDelta { get; }
member this.DaylightDelta : TimeSpan
Public ReadOnly Property DaylightDelta As TimeSpan

Property Value

A TimeSpan object that indicates the amount of time to add to the standard time changes as a result of the adjustment rule.

Remarks

The following formula defines a time zone's daylight saving time:

TimeZoneTime = BaseUtcOffset + DaylightDelta + UtcTime  

The value of the DaylightDelta property can range from 14 hours to -14 hours.

Note

The DaylightDelta property measures the difference between the time zone's standard time and its daylight saving time. It does not apply to changes in a time zone's standard offset from Coordinated Universal Time (UTC). To represent a time zone that has changed its standard time offset from UTC, you must call the CreateCustomTimeZone method to create a new time zone.

The most common value of the DaylightDelta property is 1.0 hours. The application of the daylight saving time adjustment rule increases the time zone's offset from Coordinated Universal Time (UTC) by one hour.

Applies to