Noda Time
Resolvers Class
NamespacesNodaTime.TimeZonesResolvers

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

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.
Declaration Syntax
C#Visual BasicVisual C++
public static class Resolvers
Public NotInheritable Class Resolvers
public ref class Resolvers abstract sealed
Members
All MembersMethodsFields



IconMemberDescription
CreateMappingResolver(AmbiguousTimeResolver, SkippedTimeResolver)
LenientResolver
A ZoneLocalMappingResolver which never throws an exception due to ambiguity or skipped time.

ReturnEarlier
An AmbiguousTimeResolver which returns the earlier of the two matching times.

ReturnEndOfIntervalBefore
A SkippedTimeResolver which returns the final tick of the time zone interval before the "gap".

ReturnLater
An AmbiguousTimeResolver which returns the later of the two matching times.

ReturnStartOfIntervalAfter
A SkippedTimeResolver which returns the first tick of the time zone interval after the "gap".

StrictResolver
A ZoneLocalMappingResolver which only ever succeeds in the (usual) case where the result of the mapping is unambiguous.

ThrowWhenAmbiguous
An AmbiguousTimeResolver which simply throws an AmbiguousTimeException.

ThrowWhenSkipped
A SkippedTimeResolver which simply throws a SkippedTimeException.

Remarks

This class contains predefined implementations of ZoneLocalMappingResolver, AmbiguousTimeResolver, and SkippedTimeResolver, along with CreateMappingResolver(AmbiguousTimeResolver, SkippedTimeResolver), which produces a ZoneLocalMappingResolver from instances of the other two.

Thread Safety
All members of this class are thread-safe, as are the values returned by them.
Inheritance Hierarchy
Object
Resolvers

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