Class Resolvers
source link: https://nodatime.org/unstable/api/NodaTime.TimeZones.Resolvers.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Class Resolvers
Inheritance
Inherited Members
Syntax
public static class Resolvers
Remarks
Properties
LenientResolver
Declaration
public static ZoneLocalMappingResolver LenientResolver { get; }
Property Value
Remarks
Note: The behavior of this resolver was changed in version 2.0 to fit the most commonly seen real-world usage pattern. Previous versions combined the ReturnLater and ReturnStartOfIntervalAfter resolvers, which can still be used separately if desired.
See Also
ReturnEarlier
Declaration
public static AmbiguousTimeResolver ReturnEarlier { get; }
Property Value
ReturnEndOfIntervalBefore
Declaration
public static SkippedTimeResolver ReturnEndOfIntervalBefore { get; }
Property Value
ReturnForwardShifted
Declaration
public static SkippedTimeResolver ReturnForwardShifted { get; }
Property Value
Type Description SkippedTimeResolver A SkippedTimeResolver which shifts values in the "gap" forward by the duration of the gap (which is usually 1 hour).
ReturnLater
Declaration
public static AmbiguousTimeResolver ReturnLater { get; }
Property Value
ReturnStartOfIntervalAfter
Declaration
public static SkippedTimeResolver ReturnStartOfIntervalAfter { get; }
Property Value
Type Description SkippedTimeResolver A SkippedTimeResolver which returns the first tick of the time zone interval after the "gap".
StrictResolver
Declaration
public static ZoneLocalMappingResolver StrictResolver { get; }
Property Value
Remarks
See Also
ThrowWhenAmbiguous
Declaration
public static AmbiguousTimeResolver ThrowWhenAmbiguous { get; }
Property Value
ThrowWhenSkipped
Declaration
public static SkippedTimeResolver ThrowWhenSkipped { get; }
Property Value
Methods
CreateMappingResolver(AmbiguousTimeResolver, SkippedTimeResolver)
Declaration
public static ZoneLocalMappingResolver CreateMappingResolver(AmbiguousTimeResolver ambiguousTimeResolver, SkippedTimeResolver skippedTimeResolver)
Parameters
Returns
Remarks
ZoneLocalMappingResolver
created by this method operates in the obvious way: unambiguous mappings
are returned directly, ambiguous mappings are delegated to the given AmbiguousTimeResolver
, and
"skipped" mappings are delegated to the given SkippedTimeResolver
.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK