Noda Time
BclDateTimeZoneSource Class
NamespacesNodaTime.TimeZonesBclDateTimeZoneSource

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

Provides an implementation of IDateTimeZoneSource that loads data from the BCL TimeZoneInfo class.
Declaration Syntax
C#Visual BasicVisual C++
public sealed class BclDateTimeZoneSource : IDateTimeZoneSource
Public NotInheritable Class BclDateTimeZoneSource _
	Implements IDateTimeZoneSource
public ref class BclDateTimeZoneSource sealed : IDateTimeZoneSource
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
BclDateTimeZoneSource()()()()
Initializes a new instance of the BclDateTimeZoneSource class

ForId(String)
Creates a new instance of BclDateTimeZone from the TimeZoneInfo with the given ID. The ID must be a known system time zone ID.

GetIds()()()()
Returns the IDs of all system time zones.

MapTimeZoneId(TimeZoneInfo)
Maps the BCL ID to "our" ID as an identity projection.

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.

Remarks

All calls to ForId(String) return instances of BclDateTimeZone, including for fixed-offset IDs (i.e. "UTC" and "UTC+/-Offset").

This class is not available in the PCL version.

Thread Safety
This type maintains no state, and all members are thread-safe. See the thread safety section of the user guide for more information.
Inheritance Hierarchy
Object
BclDateTimeZoneSource

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