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
- System.​ICloneable Implemented by: delegate
- System.​Runtime.​Serialization.​ISerializable Implemented by: delegate
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)
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