DateTimeException if end is
before begin.
Example:
Interval!Date(Date(1996, 1, 2), Date(2012, 3, 1));begin | The time point which begins the interval. |
end | The time point which ends (but is not included in) the interval. |
DateTimeException if end is
before begin.
Example:
Interval!Date(Date(1996, 1, 2), Date(2012, 3, 1));(scope const TP begin, scope const D duration) purebegin | The time point which begins the interval. |
duration | The duration from the starting point to the end point. |
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)));