Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class NodaTime.​DateTimeZoneProviders

Assembly: NodaTime

Inheritance: object → DateTimeZoneProviders

Static access to date/time zone providers built into Noda Time and for global configuration where this is unavoidable. All properties are thread-safe, and the providers returned by the read-only properties cache their results.

Properties

public static IDateTimeZoneProvider
Tzdb
Gets a time zone provider which uses a <see cref="T:NodaTime.TimeZones.TzdbDateTimeZoneSource" /> . The underlying source is <see cref="P:NodaTime.TimeZones.TzdbDateTimeZoneSource.Default" /> , which is initialized from resources within the NodaTime assembly.
public static IDateTimeZoneProvider
Bcl
Gets a time zone provider which uses a <see cref="T:NodaTime.TimeZones.BclDateTimeZoneSource" /> .
Remarks <para> See note on <see cref="T:NodaTime.TimeZones.BclDateTimeZone" /> for details of some incompatibilities with the BCL. </para> <para> In Noda Time 1.x and 2.x, this property is only available on the .NET Framework builds of Noda Time, and not the PCL (Noda Time 1.x) or .NET Standard 1.3 (Noda Time 2.x) builds. </para>
public static IDateTimeZoneProvider
Serialization
Gets the <see cref="T:NodaTime.IDateTimeZoneProvider" /> to use to interpret a time zone ID read as part of XML serialization. This property is obsolete as of version 3.0; the functionality still exists in <see cref="P:NodaTime.Xml.XmlSerializationSettings.DateTimeZoneProvider" /> , which this property delegates to. (The behavior has not changed; this is purely an exercise in moving/renaming.)

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object