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

An IDateTimeZoneSource implementation which uses System.TimeZoneInfo from .NET 3.5 and later.

DateTimeZoneCache

Provides a stable cache for time zone sources.

InvalidDateTimeZoneSourceException

Exception thrown to indicate that a time zone source has violated the conditions 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

Resolvers

"Constant" fields representing commonly-used implementations of the resolver delegates, and a method to combine two "partial" resolvers into a full one.

TzdbDateTimeZoneSource

Provides an implementation of a IDateTimeZoneSource that looks for its time zone definitions from a named resource in an assembly.

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.

Delegates

AmbiguousTimeResolver

Resolves a LocalDateTime to a ZonedDateTime in the situation where the requested local time is ambiguous, due to clocks moving backward in a time zone transition (usually due to an autumnal daylight saving transition).

SkippedTimeResolver

Resolves a LocalDateTime to a ZonedDateTime in the situation where the requested local time does not exist, due to clocks moving forward in a time zone transition (usually due to a spring daylight saving transition).

ZoneLocalMappingResolver

Resolves a local date and time into a target time zone according to some policy.
In this article
Back to top Generated by DocFX