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.​SkippedTimeResolver

Assembly: NodaTime

Inheritance: object → delegate → System.​MulticastDelegate → SkippedTimeResolver

Implemented Interfaces

Resolves a <see cref="T:NodaTime.LocalDateTime" /> to a <see cref="T:NodaTime.ZonedDateTime" /> in the situation where the requested local time does not exist in the target time zone.

Remarks

<para> This delegate is used by <see cref="M:NodaTime.TimeZones.Resolvers.CreateMappingResolver(NodaTime.TimeZones.AmbiguousTimeResolver,NodaTime.TimeZones.SkippedTimeResolver)" /> when handling the situation where the requested local time does not exist, due to clocks moving forward in a time zone transition (usually due to a spring daylight saving transition). </para> <para> The returned value will necessarily represent a different local date and time to the target one, but the exact form of mapping is up to the delegate implementation. For example, it could return a value as close to the target local date and time as possible, or the time immediately after the transition. Alternatively, it can throw a <see cref="T:NodaTime.SkippedTimeException" /> to implement a policy of "reject skipped 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 skipped; the behaviour when the local date and time can be directly mapped into the target time zone is undefined. </para>

Properties

public bool
HasSingleTarget
public object
Target

Methods

public ZonedDateTime
Invoke​(LocalDateTime localDateTime, DateTimeZone zone, ZoneInterval intervalBefore, ZoneInterval intervalAfter)
BeginInvoke​(LocalDateTime localDateTime, DateTimeZone zone, ZoneInterval intervalBefore, ZoneInterval intervalAfter, 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