*/
def contains(t: Timeslot) : Boolean = this.start <= t.start && this.end >= t.end
+ def weakIncludes(t: Date) : Boolean = start < t.getTime && t.getTime < end
+ def weakOverlaps(t: Timeslot) : Boolean =
+ contains(t) || t.contains(this) || this.weakIncludes(t.from) || this.weakIncludes(t.to)
+
def containsTimeInMillis(millis: Long) = start <= millis && millis <= end
/**
* Check whether this timeslot contains the provided time instant.
*/
- private[dsl] def includes(t: Date) : Boolean = start <= t.getTime && t.getTime <= end
+ def includes(t: Date) : Boolean = start <= t.getTime && t.getTime <= end
/**