DaylightTime 类

定义

定义夏时制周期。Defines the period of daylight saving time.

public ref class DaylightTime
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public class DaylightTime
type DaylightTime = class
Public Class DaylightTime
继承
DaylightTime
属性

注解

夏令时是一年中的一段时间 (通常为一小时), 以利用延长的夏令时。Daylight saving time is a period during the year when the clock is advanced, usually by an hour, to take advantage of extended daylight hours. 在此期间结束时, 时钟将设置回标准时间。At the end of the period, the clock is set back to the standard time.

警告

方法返回TimeZone.GetDaylightChanges的对象仅识别当前有效的时区调整规则,并忽略系统为其提供信息的任何DaylightTime以前调整规则。The DaylightTime object returned by the TimeZone.GetDaylightChanges method recognizes only the time zone adjustment rule that is currently in effect, and ignores any previous adjustment rules for which the system has information. 相反, 它会将当前调整规则按时间向后移动到可能尚未生效的时间段。Instead, it applies the current adjustment rule backward in time to periods when it may not have been in effect. 若要检索有关特定时区的所有已知调整规则的信息, 请使用TimeZoneInfo.GetAdjustmentRules方法。To retrieve information about all the known adjustment rules for a particular time zone, use the TimeZoneInfo.GetAdjustmentRules method.

构造函数

DaylightTime(DateTime, DateTime, TimeSpan)

使用指定的开始,结束和时差信息初始化 DaylightTime 类的新实例。Initializes a new instance of the DaylightTime class with the specified start, end, and time difference information.

属性

Delta

获取表示标准时间与夏时制之间的时间间隔 。Gets the time interval that represents the difference between standard time and daylight saving time.

End

获取表示夏时制周期结束的日期和时间的对象。Gets the object that represents the date and time when the daylight saving period ends.

Start

获取表示夏时制周期开始的日期和时间的对象。Gets the object that represents the date and time when the daylight saving period begins.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅