earlyOrSameTime method

bool earlyOrSameTime(
  1. TimeRange other
)

Implementation

bool earlyOrSameTime(TimeRange other) {
  return start.hour < other.start.hour ||
      (start.hour == other.start.hour && start.minute <= other.start.minute);
}