The OpenD Programming Language

NegInfInterval.isBefore

Whether this interval is before the given time point.

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

Parameters

timePoint TP

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

Examples

assert(!NegInfInterval!Date(Date(2012, 3, 1)).isBefore(Date(1994, 12, 24)));
assert(!NegInfInterval!Date(Date(2012, 3, 1)).isBefore(Date(2000, 1, 5)));
assert(NegInfInterval!Date(Date(2012, 3, 1)).isBefore(Date(2012, 3, 1)));

Meta