AmbiguousTimeException ClassNoda Time
Exception thrown to indicate that the specified local date/time occurs twice in a particular time zone due to daylight saving time changes.
Inheritance Hierarchy

OnlineSystem Object
  OnlineSystem Exception
    OnlineSystem SystemException
      OnlineSystem ArgumentException
        OnlineSystem ArgumentOutOfRangeException
          NodaTime AmbiguousTimeException

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 1.3.0.0 (1.3.1)
Syntax

[SerializableAttribute]
public sealed class AmbiguousTimeException : ArgumentOutOfRangeException
Remarks

This occurs for transitions where the clock goes backward (usually by an hour). For example, suppose the time zone goes backward at 2am, so the second after 01:59:59 becomes 01:00:00. In that case, times such as 01:30:00 occur twice.

This exception is used to indicate such problems, as they're usually not the same as other OnlineArgumentOutOfRangeException causes, such as entering "15" for a month number.

In theory this isn't calendar-specific; the local value will be ambiguous in this time zone regardless of the calendar used. However, this exception is always created in conjunction with a specific calendar, which leads to a more natural way of examining its information and constructing an error message.

Version Information

Available since: 1.0.0
Supported in the PCL? Yes
Thread Safety

Any public static members of this type are thread safe. Any instance members are not guaranteed to be thread safe. See the thread safety section of the user guide for more information.
See Also