Noda Time
TzdbDateTimeZoneSource Class
NamespacesNodaTime.TimeZonesTzdbDateTimeZoneSource

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

Provides an implementation of IDateTimeZoneSource that loads data originating from the tz database (also known as the IANA Time Zone database, or zoneinfo or Olson database).
Declaration Syntax
C#Visual BasicVisual C++
public sealed class TzdbDateTimeZoneSource : IDateTimeZoneSource
Public NotInheritable Class TzdbDateTimeZoneSource _
	Implements IDateTimeZoneSource
public ref class TzdbDateTimeZoneSource sealed : IDateTimeZoneSource
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
TzdbDateTimeZoneSource(String) Obsolete.
Initializes a new instance of the TzdbDateTimeZoneSource class from a resource within the NodaTime assembly.

TzdbDateTimeZoneSource(String, Assembly) Obsolete.
Initializes a new instance of the TzdbDateTimeZoneSource class.

TzdbDateTimeZoneSource(ResourceSet) Obsolete.
Initializes a new instance of the TzdbDateTimeZoneSource class.

TzdbDateTimeZoneSource(ResourceManager) Obsolete.
Initializes a new instance of the TzdbDateTimeZoneSource class.

Aliases
Returns a lookup from canonical time zone ID (e.g. "Europe/London") to a group of aliases for that time zone (e.g. {"Europe/Belfast", "Europe/Guernsey", "Europe/Jersey", "Europe/Isle_of_Man", "GB", "GB-Eire"}).

CanonicalIdMap
Returns a read-only map from time zone ID to the canonical ID. For example, the key "Europe/Jersey" would be associated with the value "Europe/London".

Default
The TzdbDateTimeZoneSource initialised from resources within the NodaTime assembly.

ForId(String)
Returns the time zone definition associated with the given ID.

FromStream(Stream)
Creates an instance from a stream in the custom Noda Time format. The stream must be readable.

GetIds()()()()
Returns an unordered enumeration of the IDs available from this source.

MapTimeZoneId(TimeZoneInfo)
Returns this source's corresponding ID for the given BCL time zone.

TzdbVersion
Returns just the TZDB version (e.g. "2013a") of the source data.

Validate()()()()
Validates that the data within this source is consistent with itself.

VersionId
Returns an appropriate version ID for diagnostic purposes, which must not be null. This doesn't have any specific format; it's solely for diagnostic purposes. The included sources return strings of the format "source identifier: source version" indicating where the information comes from and which version of the source information has been loaded.

WindowsMapping
Gets the Windows time zone mapping information provided in the CLDR supplemental "windowsZones.xml" file.

ZoneLocations
Returns a read-only list of zone locations known to this source.

Remarks
All calls to ForId(String) for fixed-offset IDs advertised by the source (i.e. "UTC" and "UTC+/-Offset") will return zones equal to those returned by ForOffset(Offset).
Thread Safety
This type is immutable reference type. See the thread safety section of the user guide for more information.
Inheritance Hierarchy
Object
TzdbDateTimeZoneSource

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)