The OpenD Programming Language

PosInfInterval.isBefore

Whether this interval is before the given time point.

Always returns false because an interval going to positive infinity can never be before any time point.

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

Parameters

timePoint TP

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

Examples

assert(!PosInfInterval!Date(Date(1996, 1, 2)).isBefore(Date(1994, 12, 24)));
assert(!PosInfInterval!Date(Date(1996, 1, 2)).isBefore(Date(2000, 1, 5)));

Meta