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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)> _
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)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public ushort GetTimeZoneID(
SPTimeZoneInformation tzi
)
Parameters
tzi
Type: Microsoft.SharePoint.SPTimeZoneInformationAn SPTimeZoneInformation structure that contains information about the time zone.
Return Value
Type: System.UInt16
An unsigned 16-bit integer ID that specifies the time zone.