Interval.isAfter

Whether this interval is after the given interval and does not intersect it.

Always returns false (unless this interval is empty) because a finite interval can never be after an interval going to positive infinity.

  1. bool isAfter(TP timePoint)
  2. bool isAfter(Interval interval)
  3. bool isAfter(PosInfInterval!TP interval)
    struct Interval(TP)
    const pure
    bool
    isAfter
    (
    scope const PosInfInterval!TP interval
    )
  4. bool isAfter(NegInfInterval!TP interval)

Parameters

interval PosInfInterval!TP

The interval to check against this interval.

Throws

std.datetime.date.DateTimeException if this interval is empty.

Examples

assert(!Interval!Date(Date(1996, 1, 2), Date(2012, 3, 1)).isAfter(
            PosInfInterval!Date(Date(1999, 5, 4))));

Meta