Share via


TimeZone.UtcOffset Property

Gets the Universal Time Coordinate (UTC) offset value for the time zone.

命名空间: Microsoft.SqlServer.NotificationServices
程序集: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

语法

声明
Public ReadOnly Property UtcOffset As Integer
public int UtcOffset { get; }
public:
virtual property int UtcOffset {
    int get () sealed;
}
/** @property */
public final int get_UtcOffset ()
public final function get UtcOffset () : int

属性值

An integer representing the UTC offset value for the time zone.

备注

The UTC Offset value is the number of SqlDateTime clock "ticks" between UTC and the time zone. To obtain the number of hours between UTC and the time zone, divide the UTC offset value by 1080000.

线程安全

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

TimeZone Class
TimeZone Members
Microsoft.SqlServer.NotificationServices Namespace