[This is preliminary documentation and is subject to change.]
Provides an implementation of IDateTimeZoneSource that loads data from the BCL
TimeZoneInfo class.

C# | Visual Basic | Visual C++ |
public sealed class BclDateTimeZoneSource : IDateTimeZoneSource
Public NotInheritable Class BclDateTimeZoneSource _ Implements IDateTimeZoneSource
public ref class BclDateTimeZoneSource sealed : IDateTimeZoneSource

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | 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.
|

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.

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

Object | |
![]() | BclDateTimeZoneSource |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)