Interval.closed constructor

Interval.closed(
  1. DateTime start,
  2. DateTime end
)

A closed interval between start (inclusive) and end (exclusive).

Implementation

factory Interval.closed(DateTime start, DateTime end) =>
    Interval(Instant(start), Instant(end));