ITimeZoneInfo Interface

Provides access to members that control the time zone information.

Description

ITimeZoneInfo contains all of the time zone and daylight savings time information relevant in a specific geographic region. In a given region, the rules for daylight savings time can change from year to year. Therefore, the ITimeZoneInfo interface provides a way to store and retrieve several years of different daylight savings time rules. When accessing several years of rules, you can start at the first rule year and repeatedly getting the "next rule year" until you reach the "last rule year".

Members

Name Description
Method AddDynamicRule Adds a dynamic adjustment to the time zone.
Read/write property CustomDescription Custom description for the time zone.
Read/write property DaylightTimeName The time zone name during daylight time.
Read/write property DefaultRule The default time zone adjustment rule.
Read/write property DisplayName Descriptive display name of the time zone.
Read-only property DynamicRule The dynamic adjustment rule for a specific year.
Read-only property DynamicRulesCount Number of dynamic adjustment rules for the time zone.
Read-only property FirstDynamicRuleYear The first dynamic adjustment rule year.
Read-only property LastDynamicRuleYear The last dynamic adjustment rule year.
Read-only property NextDynamicRuleYear The next dynamic adjustment rule year that cyclicly proceeds the given dynamic adjustment rule year.
Read/write property StandardTimeName The time zone name during standard time.
Read/write property WindowsID Time zone Windows ID name.

ITimeZoneInfo.AddDynamicRule Method

Adds a dynamic adjustment to the time zone.

Public Sub AddDynamicRule ( _
    ByVal DynamicRule As ITimeZoneRule _
)
public void AddDynamicRule (
    ITimeZoneRule DynamicRule
);

ITimeZoneInfo.CustomDescription Property

Custom description for the time zone.

Public Property CustomDescription As String
public string CustomDescription {get; set;}

ITimeZoneInfo.DaylightTimeName Property

The time zone name during daylight time.

Public Property DaylightTimeName As String
public string DaylightTimeName {get; set;}

ITimeZoneInfo.DefaultRule Property

The default time zone adjustment rule.

Public Property DefaultRule As ITimeZoneRule
public ITimeZoneRule DefaultRule {get; set;}

ITimeZoneInfo.DisplayName Property

Descriptive display name of the time zone.

Public Property DisplayName As String
public string DisplayName {get; set;}

ITimeZoneInfo.DynamicRule Property

The dynamic adjustment rule for a specific year.

Public Function get_DynamicRule ( _
    ByVal Year As Integer _
) As ITimeZoneRule
public ITimeZoneRule get_DynamicRule (
    int Year
);

ITimeZoneInfo.DynamicRulesCount Property

Number of dynamic adjustment rules for the time zone.

Public ReadOnly Property DynamicRulesCount As Integer
public int DynamicRulesCount {get;}

ITimeZoneInfo.FirstDynamicRuleYear Property

The first dynamic adjustment rule year.

Public ReadOnly Property FirstDynamicRuleYear As Integer
public int FirstDynamicRuleYear {get;}

ITimeZoneInfo.LastDynamicRuleYear Property

The last dynamic adjustment rule year.

Public ReadOnly Property LastDynamicRuleYear As Integer
public int LastDynamicRuleYear {get;}

ITimeZoneInfo.NextDynamicRuleYear Property

The next dynamic adjustment rule year that cyclicly proceeds the given dynamic adjustment rule year.

Public Function get_NextDynamicRuleYear ( _
    ByVal currentDynamicRuleYear As Integer _
) As Integer
public int get_NextDynamicRuleYear (
    int currentDynamicRuleYear
);

ITimeZoneInfo.StandardTimeName Property

The time zone name during standard time.

Public Property StandardTimeName As String
public string StandardTimeName {get; set;}

ITimeZoneInfo.WindowsID Property

Time zone Windows ID name.

Public Property WindowsID As String
public string WindowsID {get; set;}

Classes that implement ITimeZoneInfo

Classes Description
TimeZoneInfo An object that represents a time zone information.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.