SPRegionalSettings.GetTimeZoneID method

Returns the ID of the time zone used on the site based on the specified time zone settings.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetTimeZoneID ( _
    tzi As SPTimeZoneInformation _
) As UShort
'Usage
Dim instance As SPRegionalSettings
Dim tzi As SPTimeZoneInformation
Dim returnValue As UShort

returnValue = instance.GetTimeZoneID(tzi)
public ushort GetTimeZoneID(
    SPTimeZoneInformation tzi
)

Parameters

Return value

Type: System.UInt16
An unsigned 16-bit integer ID that specifies the time zone.

See also

Reference

SPRegionalSettings class

SPRegionalSettings members

Microsoft.SharePoint namespace