[This is preliminary documentation and is subject to change.]
A time zone source for test purposes.
Create instances via FakeDateTimeZoneSource..::..Builder.

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

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

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.

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