Interval.this

this(scope const TP begin, scope const U end) pure

Parameters

beginThe time point which begins the interval.
endThe time point which ends (but is not included in) the interval.

Throws

DateTimeException if end is

before begin.

Example: -------------------- Interval!Date(Date(1996, 1, 2), Date(2012, 3, 1)); --------------------

this(scope const TP begin, scope const D duration) pure

Parameters

beginThe time point which begins the interval.
durationThe duration from the starting point to the end point.

Throws

DateTimeException if the resulting

end is before begin.

Example: -------------------- assert(Interval!Date(Date(1996, 1, 2), dur!"days"(3)) == Interval!Date(Date(1996, 1, 2), Date(1996, 1, 5))); --------------------