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.​SkippedTimeException
Assembly: NodaTime
Inheritance: object → System.​Exception → System.​SystemException → System.​ArgumentException → System.​ArgumentOutOfRangeException → SkippedTimeException
Implemented Interfaces
- System.​Runtime.​Serialization.​ISerializable Implemented by: Exception
Exception thrown to indicate that the specified local time doesn't exist in a particular time zone due to daylight saving time changes.
Remarks
<para>
This normally occurs for spring transitions, where the clock goes forward
(usually by an hour). For example, suppose the time zone goes forward
at 2am, so the second after 01:59:59 becomes 03:00:00. In that case,
local times such as 02:30:00 never occur.
</para> <para>
This exception is used to indicate such problems, as they're usually
not the same as other <see cref="T:System.ArgumentOutOfRangeException" /> causes,
such as entering "15" for a month number.
</para> <para>
Note that it is possible (though extremely rare) for a whole day to be skipped due to a time zone transition,
so this exception may also be thrown in cases where no local time is valid for a particular local date. (For
example, Samoa skipped December 30th 2011 entirely, transitioning from UTC-10 to UTC+14 at midnight.)
</para>
Properties
public
LocalDateTime
LocalDateTime
Gets the local date/time which is invalid in the time zone, prompting this exception.
public
DateTimeZone
Zone
Gets the time zone in which the local date/time is invalid.
public
object
ActualValue
public
string
Message
public
string
ParamName
public
string
HelpLink
public
int
HResult
InnerException
public
string
Source
public
string
StackTrace
TargetSite
Methods
public
void
GetObjectData​(System.​Runtime.​Serialization.​SerializationInfo info,
System.​Runtime.​Serialization.​StreamingContext context)
Inherited from System.​ArgumentOutOfRangeException
public
System.​Type
GetType​()
Inherited from System.​Exception
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object