Noda Time
FakeDateTimeZoneSource Class
NamespacesNodaTime.Testing.TimeZonesFakeDateTimeZoneSource

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

A time zone source for test purposes. Create instances via FakeDateTimeZoneSource..::..Builder.
Declaration Syntax
C#Visual BasicVisual C++
public sealed class FakeDateTimeZoneSource : IDateTimeZoneSource
Public NotInheritable Class FakeDateTimeZoneSource _
	Implements IDateTimeZoneSource
public ref class FakeDateTimeZoneSource sealed : IDateTimeZoneSource
Members
All MembersMethodsProperties



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

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.

ToProvider()()()()
Creates a time zone provider (DateTimeZoneCache) from this source.

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
Under the PCL, the mapping from TimeZoneInfo is performed using the StandardName property instead of the Id property, as the Id property isn't available. The standard name is almost always the same anyway, known exceptions including Jerusalem and the Malay Peninsula.
Inheritance Hierarchy
Object
FakeDateTimeZoneSource

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