Noda Time
Show / Hide Table of Contents

Namespace NodaTime.TimeZones

The NodaTime.TimeZones namespace contains types related to time zones beyond the core DateTimeZone class in the NodaTime namespace. Most users will have no need to refer to the types in this namespace.

Classes

BclDateTimeZone

Representation of a time zone converted from a System.TimeZoneInfo from the Base Class Library.

BclDateTimeZoneSource

Provides an implementation of IDateTimeZoneSource that loads data from the BCL System.TimeZoneInfo class.

DateTimeZoneCache

Provides an implementation of IDateTimeZoneProvider that caches results from an IDateTimeZoneSource.

DateTimeZoneNotFoundException

Exception thrown when time zone is requested from an IDateTimeZoneProvider, but the specified ID is invalid for that provider.

InvalidDateTimeZoneSourceException

Exception thrown to indicate that a time zone source has violated the contract of IDateTimeZoneSource. This exception is primarily intended to be thrown from DateTimeZoneCache, and only in the face of a buggy source; user code should not usually need to be aware of this or catch it.

Resolvers

Commonly-used implementations of the delegates used in resolving a LocalDateTime to a ZonedDateTime, and a method to combine two "partial" resolvers into a full one.

TzdbDateTimeZoneSource

Provides an implementation of IDateTimeZoneSource that loads data originating from the tz database (also known as the IANA Time Zone database, or zoneinfo or Olson database).

TzdbZone1970Location

A location entry generated from the "zone1970.tab" file in a TZDB release. This can be used to provide users with a choice of time zone, although it is not internationalized. This is equivalent to TzdbZoneLocation, except that multiple countries may be represented.

TzdbZone1970Location.Country

A country represented within an entry in the "zone1970.tab" file, with the English name mapped from the "iso3166.tab" file.

TzdbZoneLocation

A location entry generated from the "zone.tab" file in a TZDB release. This can be used to provide users with a choice of time zone, although it is not internationalized.

ZoneEqualityComparer

Equality comparer for time zones, comparing specific aspects of the zone intervals within a time zone for a specific interval of the time line.

ZoneInterval

Represents a range of time for which a particular Offset applies.

ZoneLocalMapping

The result of mapping a LocalDateTime within a time zone, i.e. finding out at what "global" time the "local" time occurred.

Interfaces

IDateTimeZoneSource

Provides the interface for objects that can retrieve time zone definitions given an ID.

Enums

ZoneEqualityComparer.Options

Options to use when comparing time zones for equality. Each option makes the comparison more restrictive.

Delegates

AmbiguousTimeResolver

Chooses between two ZonedDateTime values that resolve to the same LocalDateTime.

SkippedTimeResolver

Resolves a LocalDateTime to a ZonedDateTime in the situation where the requested local time does not exist in the target time zone.

ZoneLocalMappingResolver

Resolves the result of attempting to map a local date and time to a target time zone.
In this article
Back to top Generated by DocFX