Version

RegisterCustomTimeZone Method

Registers a custom time zone
Syntax
'Declaration
 
Public Sub RegisterCustomTimeZone( _
   ByVal id As String, _
   ByVal exportId As String, _
   ByVal baseUtcOffset As TimeSpan, _
   ByVal dayLightName As String, _
   ByVal displayName As String, _
   ByVal standardName As String, _
   ByVal supportsDaylightSavingsTime As Boolean, _
   ByVal adjustmentRules() As TimeZoneInfoProvider.TimeAdjustmentRule _
) 

Parameters

id
The id of the time zone.
exportId
The export id
baseUtcOffset
The offset from UTC to use when not in daylight savings time.
dayLightName
The name of the time zone in daylight savings time
displayName
The display name of the time zone
standardName
The name of the time zone in standard time
supportsDaylightSavingsTime
Whether this time zone supports daylight savings.
adjustmentRules
The adjustment rules for daylight savings
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also