ITimeZoneFactory2 Interface

Provides access to members that control the Time Zone Factory.

Members

Name Description
Method CreateLocaleInfoFromLocaleID Obtains the locale display name that corresponds to the given locale ID.
Method CreateTimeReferenceFromWindowsID Creates a time reference from a windows ID.
Method CreateTimeZoneInfoFromWindowsID Creates a time zone info from a windows ID.
Read-only property FirstLocaleID The first locale ID.
Read-only property FirstTimeZoneWindowsID The first time zone windows ID.
Method IsValidLocaleID Returns whether a given locale ID is valid for creating a locale info.
Method IsValidTimeZoneWindowsID Returns whether a given time zone windows ID is valid for creating a time zone info or a time reference.
Read-only property NextLocaleID The locale ID that cyclicly proceeds the given locale ID.
Read-only property NextTimeZoneWindowsID The time zone windows ID that cyclicly proceeds the given time zone windows ID.
Method QueryLocalTimeReference Obtains the machine's current local time reference. Set exactMatch to true to ensure exact retrieval of a customized machine's local time reference, or to false to obtain a pre-defined time reference, which is the closest match to the machine's current local t
Method QueryLocalTimeZoneWindowsID Obtains the machine's current local time zone Windows ID.
Method QueryTimeZoneOlsonIDsFromWindowsID Obtains all the olson time zone IDs that correspond to the given time zone windows ID.
Method QueryTimeZoneWindowsIDFromOlsonID Returns the time zone windows ID that corresponds to the given olson time zone ID.
Method ReloadTimeZones Reload time zones.
Method SaveTimeZones Save time zones.

ITimeZoneFactory2.QueryLocalTimeReference Method

Obtains the machine's current local time reference. Set exactMatch to true to ensure exact retrieval of a customized machine's local time reference, or to false to obtain a pre-defined time reference, which is the closest match to the machine's current local t

Public Function QueryLocalTimeReference ( _
    ByVal exactMatch As Boolean _
) As ITimeReference
public ITimeReference QueryLocalTimeReference (
    bool exactMatch
);

ITimeZoneFactory2.ReloadTimeZones Method

Reload time zones.

Public Sub ReloadTimeZones ( _
    ByVal FileName As String _
)
public void ReloadTimeZones (
    string FileName
);

ITimeZoneFactory2.SaveTimeZones Method

Save time zones.

Public Sub SaveTimeZones ( _
    ByVal FileName As String _
)
public void SaveTimeZones (
    string FileName
);

Inherited Interfaces

Interfaces Description
ITimeZoneFactory Provides access to members that control the Time Zone Factory.

Classes that implement ITimeZoneFactory2

Classes Description
TimeZoneFactory An object that creates TimeZoneInfo instances.

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