TimeZone 成员

表示时区。

下表列出了由 TimeZone 类型公开的成员。

受保护的构造函数

  名称 说明
Protected method Supported by the .NET Compact Framework TimeZone 初始化 TimeZone 类的新实例。

页首

公共属性

  名称 说明
Public property Static Supported by the .NET Compact Framework CurrentTimeZone 获取当前计算机系统的时区。
Public property Supported by the .NET Compact Framework DaylightName 获取夏时制时区名称。
Public property Supported by the .NET Compact Framework StandardName 获取标准时区名称。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Supported by the .NET Compact Framework Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetDaylightChanges 返回特定年份的夏时制期间。
Public method Supported by the .NET Compact Framework GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetUtcOffset 返回指定本地时间的协调通用时间 (UTC) 偏移量。
Public method Supported by the .NET Compact Framework IsDaylightSavingTime 已重载。 返回一个值,用以指示指定日期和时间是否处于夏时制期间。
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ToLocalTime 返回对应于指定协调通用时间 (UTC) 的本地时间。
Public method Supported by the .NET Compact Framework ToString  返回表示当前 ObjectString。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ToUniversalTime 返回对应于指定本地时间的协调通用时间 (UTC)。

页首

受保护的方法

  名称 说明
Protected method Supported by the .NET Compact Framework Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method Supported by the .NET Compact Framework MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)

页首

请参见

参考

TimeZone 类
System 命名空间