Table of Contents

Class InvalidZonedDateTimeException

Namespace
LfrlAnvil.Chrono.Exceptions
Assembly
LfrlAnvil.Chrono.dll

Represents an error that occurred due to an invalid DateTime within a chosen TimeZoneInfo.

public class InvalidZonedDateTimeException : ArgumentException, ISerializable
Inheritance
InvalidZonedDateTimeException
Implements
Inherited Members

Constructors

InvalidZonedDateTimeException(DateTime, TimeZoneInfo)

Creates a new InvalidZonedDateTimeException instance.

public InvalidZonedDateTimeException(DateTime dateTime, TimeZoneInfo timeZone)

Parameters

dateTime DateTime

Invalid date time.

timeZone TimeZoneInfo

Target time zone.

Properties

DateTime

Invalid date time.

public DateTime DateTime { get; }

Property Value

DateTime

TimeZone

Target time zone.

public TimeZoneInfo TimeZone { get; }

Property Value

TimeZoneInfo