ITimeZoneFactory3 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 CreateTimeReference Creates a time reference from a time zone ID.
Method CreateTimeReferenceFromWindowsID (Deprecated, use ITimeZoneFactory3::CreateTimeReference) Creates a time reference from a windows ID.
Method CreateTimeZoneInfoFromWindowsID (Deprecated, use ITimeZoneFactory3::CreateTimeReference) Creates a time zone info from a windows ID.
Read-only property FirstLocaleID The first locale ID.
Read-only property FirstTimeZoneID The first time zone olson 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 NextTimeZoneID The next time zone olson ID after the given time zone olson 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 QueryLocalTimeZoneID Obtains the machine's current local time zone olson ID.
Method QueryLocalTimeZoneWindowsID (Deprecated, use ITimeZoneFactory3::QueryLocalTimeZoneID for IANA) Obtains the machine's current local time zone Windows ID.
Method QueryTimeZoneDefaultOffsets Get the default standard and daylight offsets in milliseconds for the time zone ID.
Method QueryTimeZoneDisplayName Get the display name, and long display name if it exists, for the time zone ID.
Method QueryTimeZoneOlsonIDFromWindowsID Returns the time zone olson ID that corresponds to the given time zone windows ID and respecting daylight saving time.
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.
Method UpdateOlsonIDFromWindowsID Sets the time zone olson ID based on the time reference's windows ID and respecting daylight saving time.

ITimeZoneFactory3.CreateTimeReference Method

Creates a time reference from a time zone ID.

Public Function CreateTimeReference ( _
    ByVal ID As String _
) As ITimeReference
public ITimeReference CreateTimeReference (
    string ID
);

ITimeZoneFactory3.FirstTimeZoneID Property

The first time zone olson ID.

Public Sub FirstTimeZoneID ( _
    ByRef firstTimeZoneOlsonID As String _
)
public void FirstTimeZoneID (
    ref string firstTimeZoneOlsonID
);

ITimeZoneFactory3.NextTimeZoneID Property

The next time zone olson ID after the given time zone olson ID.

Public Sub NextTimeZoneID ( _
    ByVal currentTimeZoneOlsonID As String, _
    ByRef nextTimeZoneOlsonID As String _
)
public void NextTimeZoneID (
    string currentTimeZoneOlsonID,
    ref string nextTimeZoneOlsonID
);

ITimeZoneFactory3.QueryLocalTimeZoneID Method

Obtains the machine's current local time zone olson ID.

Public Function QueryLocalTimeZoneID ( _
) As String
public string QueryLocalTimeZoneID (
);

ITimeZoneFactory3.QueryTimeZoneDefaultOffsets Method

Get the default standard and daylight offsets in milliseconds for the time zone ID.

Public Sub QueryTimeZoneDefaultOffsets ( _
    ByVal ID As String, _
    ByRef stdOffsetFromUTC As Integer, _
    ByRef dstOffsetFromStd As Integer _
)
public void QueryTimeZoneDefaultOffsets (
    string ID,
    ref int stdOffsetFromUTC,
    ref int dstOffsetFromStd
);

ITimeZoneFactory3.QueryTimeZoneDisplayName Method

Get the display name, and long display name if it exists, for the time zone ID.

Public Sub QueryTimeZoneDisplayName ( _
    ByVal ID As String, _
    ByRef DisplayName As String, _
    ByRef longDisplayName As String _
)
public void QueryTimeZoneDisplayName (
    string ID,
    ref string DisplayName,
    ref string longDisplayName
);

ITimeZoneFactory3.QueryTimeZoneOlsonIDFromWindowsID Method

Returns the time zone olson ID that corresponds to the given time zone windows ID and respecting daylight saving time.

Public Function QueryTimeZoneOlsonIDFromWindowsID ( _
    ByVal WindowsID As String, _
    ByVal respectsDST As Boolean _
) As String
public string QueryTimeZoneOlsonIDFromWindowsID (
    string WindowsID,
    bool respectsDST
);

ITimeZoneFactory3.UpdateOlsonIDFromWindowsID Method

Sets the time zone olson ID based on the time reference's windows ID and respecting daylight saving time.

Public Sub UpdateOlsonIDFromWindowsID ( _
    ByVal TimeReference As ITimeReference _
)
public void UpdateOlsonIDFromWindowsID (
    ITimeReference TimeReference
);

Inherited Interfaces

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

Classes that implement ITimeZoneFactory3

Classes Description

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