[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.
| C# | Visual Basic | Visual C++ |
public static class Resolvers
Public NotInheritable Class Resolvers
public ref class Resolvers abstract sealed
| All Members | Methods | Fields | |||
| Icon | Member | Description |
|---|---|---|
| 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.
|
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.
All members of this class are thread-safe, as are the values returned by them.
| Object | |
| Resolvers | |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)