編輯

共用方式為


_TimeZone.DaylightBias Property

Definition

Returns an Integer (int in C#) value that represents the time offset in minutes from the Bias to account for daylight time in this time zone. Read-only.

public:
 property int DaylightBias { int get(); };
public int DaylightBias { get; }
Public ReadOnly Property DaylightBias As Integer

Property Value

Remarks

This value is stored as part of the value for TZI for that time zone in the Windows registry. The TZI value is mapped to the Windows TIME_ZONE_INFORMATION

In relation to the UTC time and the local time of the time zone, UTC time is the result of adding the Bias and DaylightBias to the local time. For example, in a state adopting daylight time in the Pacific time zone, the Bias is 480 minutes and DaylightBias is -60 minutes. To determine the time in UTC for June 11, 2 A.M. PST, add a Bias of (480/60) hours and a DaylightBias of -(60/60) hours to the local time June 11, 2 A.M. The time in UTC is June 11, 9 A.M.

Applies to