[This is preliminary documentation and is subject to change.]

C# | Visual Basic | Visual C++ |
public interface IDateTimeZoneProvider
Public Interface IDateTimeZoneProvider
public interface class IDateTimeZoneProvider

All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
![]() | GetSystemDefault()()()() |
Gets the time zone from this provider that matches the system default time zone, if a matching time zone is
available.
|
![]() | GetZoneOrNull(String) |
Returns the time zone for the given ID, if it's available.
|
![]() | Ids |
Gets the list of valid time zone ids advertised by this provider.
|
![]() | Item[([( String])]) |
Returns the time zone for the given ID.
|
![]() | VersionId |
The version ID of this provider.
|

Consumers should be able to treat an IDateTimeZoneProvider like a cache: lookups should be quick (after at most one lookup of a given ID), and the data for a given ID should always be the same (even if the specific instance returned is not). Consumers should not feel the need to cache data accessed through this interface.
Implementations designed to work with any IDateTimeZoneSource implementation (such as DateTimeZoneCache) should not attempt to handle exceptions thrown by the source. A source-specific provider may do so, as it has more detailed knowledge of what can go wrong and how it can best be handled.
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)