/// <summary> /// Initializes a new instance of the <see cref="ZonedDateTimeRange"/> class. /// </summary> /// <param name="instantRange">The instant range.</param> /// <param name="dateTimeZone">The date time zone.</param> public ZonedDateTimeRange([NotNull] InstantRange instantRange, [NotNull] DateTimeZone dateTimeZone) : base( new ZonedDateTime(instantRange.Start, dateTimeZone), new ZonedDateTime(instantRange.End, dateTimeZone), instantRange.Step) { if (dateTimeZone == null) { throw new ArgumentNullException(nameof(dateTimeZone)); } }
/// <summary> /// Initializes a new instance of the <see cref="ZonedDateTimeRange"/> class. /// </summary> /// <param name="instantRange">The instant range.</param> /// <param name="startDateTimeZone">The start date time zone.</param> /// <param name="endDateTimeZone">The end date time zone.</param> public ZonedDateTimeRange( [NotNull] InstantRange instantRange, [NotNull] DateTimeZone startDateTimeZone, [NotNull] DateTimeZone endDateTimeZone) : base( new ZonedDateTime(instantRange.Start, startDateTimeZone), new ZonedDateTime(instantRange.End, endDateTimeZone)) { if (startDateTimeZone == null) { throw new ArgumentNullException(nameof(startDateTimeZone)); } if (endDateTimeZone == null) { throw new ArgumentNullException(nameof(endDateTimeZone)); } }