'Declaration
Public Shared Function CreateCustom( _ ByVal id As System.String, _ ByVal baseUtcOffset As System.TimeSpan, _ ByVal displayName As System.String, _ ByVal standardDisplayName As System.String, _ ByVal daylightDisplayName As System.String, _ ByVal adjustmentRules() As NAdjustmentRule, _ ByVal disableDaylightSavingTime As System.Boolean _ ) As NTimeZone
'Usage
Dim id As System.String Dim baseUtcOffset As System.TimeSpan Dim displayName As System.String Dim standardDisplayName As System.String Dim daylightDisplayName As System.String Dim adjustmentRules() As NAdjustmentRule Dim disableDaylightSavingTime As System.Boolean Dim value As NTimeZone value = NTimeZone.CreateCustom(id, baseUtcOffset, displayName, standardDisplayName, daylightDisplayName, adjustmentRules, disableDaylightSavingTime)
public static NTimeZone CreateCustom( System.string id, System.TimeSpan baseUtcOffset, System.string displayName, System.string standardDisplayName, System.string daylightDisplayName, NAdjustmentRule[] adjustmentRules, System.bool disableDaylightSavingTime )
Parameters
- id
- The time zone's identifier.
- baseUtcOffset
- A System.TimeSpan object that represents the time difference between this time zone and Coordinated Universal Time (UTC).
- displayName
- The display name of the new time zone.
- standardDisplayName
- The standard time name of the new time zone.
- daylightDisplayName
- The daylight saving time name of the new time zone.
- adjustmentRules
- An array of NTimeZoneInfo.AdjustmentRule objects that augment the base UTC offset for a particular period.
- disableDaylightSavingTime
- true to discard any daylight saving time-related information present in adjustmentRules with the new object; otherwise, false.
Return Value
The new time zone. If the disableDaylightSavingTime parameter is true, the returned object has no daylight saving time data.