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

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

public ZonedDateTime
Invoke​(ZonedDateTime earlier, ZonedDateTime later)
BeginInvoke​(ZonedDateTime earlier, ZonedDateTime later, System.​AsyncCallback callback, object object)
public ZonedDateTime
EndInvoke​(System.​IAsyncResult result)
protected delegate
CombineImpl​(delegate follow)
public bool
Equals​(object obj)
public int
GetHashCode​()
public delegate[]
GetInvocationList​()
GetMethodImpl​()
protected delegate
RemoveImpl​(delegate value)
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
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object