Version

CreateTimeZoneDefinition Method

Creates and returns an instance of a TimeZoneInfoProvider.TimeZoneDefinition
Syntax
'Declaration
 
Protected Function CreateTimeZoneDefinition( _
   ByVal token As TimeZoneToken, _
   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 _
) As TimeZoneInfoProvider.TimeZoneDefinition
protected TimeZoneInfoProvider.TimeZoneDefinition CreateTimeZoneDefinition( 
   TimeZoneToken token,
   string exportId,
   TimeSpan baseUtcOffset,
   string dayLightName,
   string displayName,
   string standardName,
   bool supportsDaylightSavingsTime,
   TimeZoneInfoProvider.TimeAdjustmentRule[] adjustmentRules
)

Parameters

token
The token that represents 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

Return Value

The new instance of a TimeZoneInfoProvider.TimeZoneDefinition
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