Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class NodaTime.​TimeZones.​AmbiguousTimeResolver
Assembly: NodaTime
Inheritance: object → delegate → System.​MulticastDelegate → AmbiguousTimeResolver
Implemented Interfaces
- System.​ICloneable Implemented by: delegate
- System.​Runtime.​Serialization.​ISerializable Implemented by: delegate
Chooses between two <see cref="T:NodaTime.ZonedDateTime" /> values that resolve to the same <see cref="T:NodaTime.LocalDateTime" /> .
Remarks
<para>
This delegate is used by <see cref="M:NodaTime.TimeZones.Resolvers.CreateMappingResolver(NodaTime.TimeZones.AmbiguousTimeResolver,NodaTime.TimeZones.SkippedTimeResolver)" /> when handling an ambiguous local time,
due to clocks moving backward in a time zone transition (usually due to an autumnal daylight saving transition).
</para> <para>
The returned value should be one of the two parameter values, based on the policy of the specific
implementation. Alternatively, it can throw an <see cref="T:NodaTime.AmbiguousTimeException" /> to implement a policy of
"reject ambiguous times."
</para> <para>See the <see cref="T:NodaTime.TimeZones.Resolvers" /> class for predefined implementations.</para> <para>
Implementations of this delegate can reasonably
assume that the target local date and time really is ambiguous; the behaviour when the local date and time
can be unambiguously mapped into the target time zone (or when it's skipped) is undefined.
</para>
Properties
public
bool
HasSingleTarget
public
object
Target
Methods
BeginInvoke​(ZonedDateTime earlier,
ZonedDateTime later,
System.​AsyncCallback callback,
object object)
protected
delegate
CombineImpl​(delegate follow)
Inherited from System.​MulticastDelegate
public
bool
Equals​(object obj)
Inherited from System.​MulticastDelegate
public
delegate[]
GetInvocationList​()
Inherited from System.​MulticastDelegate
public
void
GetObjectData​(System.​Runtime.​Serialization.​SerializationInfo info,
System.​Runtime.​Serialization.​StreamingContext context)
Inherited from System.​MulticastDelegate
protected
delegate
RemoveImpl​(delegate value)
Inherited from System.​MulticastDelegate
public
object
Clone​()
Inherited from delegate
public
object
DynamicInvoke​(object[] args)
Inherited from delegate
protected
object
DynamicInvokeImpl​(object[] args)
Inherited from delegate
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object