Interval.isAfter

Whether this interval is after the given time point.

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

Parameters

timePoint TP

The time point to check whether this interval is after it.

Throws

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

Examples

assert(Interval!Date(Date(1996, 1, 2), Date(2012, 3, 1)).isAfter(
            Date(1994, 12, 24)));

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

assert(!Interval!Date(Date(1996, 1, 2), Date(2012, 3, 1)).isAfter(
            Date(2012, 3, 1)));

Meta