Noda Time
IDateTimeZoneProvider Interface
Provides stable, performant time zone data.
Declaration Syntax
C#Visual BasicVisual C++
public interface IDateTimeZoneProvider
Public Interface IDateTimeZoneProvider
public interface class IDateTimeZoneProvider
All MembersMethodsProperties

Gets the time zone from this provider that matches the system default time zone, if a matching time zone is available.

Returns the time zone for the given ID, if it's available.

Gets the list of valid time zone ids advertised by this provider.

Item[([( String])])
Returns the time zone for the given ID.

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.1.1)