if (otherDate == null) {
return true;
}
// compute if we were within the allowed time range
Time current = new Time(currentDate.getTime(), TimeUnit.MILLISECONDS);
Time other = new Time(otherDate.getTime(), TimeUnit.MILLISECONDS);
// must absolute delta as when we hit the boundaries the delta would negative
long delta = Math.abs(other.toMillis() - current.toMillis());
was = "delta: " + delta + " millis";
if (timeFrom != null) {
long from = timeFrom.toMillis();
answer = delta >= from;