timeOfDayIsBefore static method

bool timeOfDayIsBefore(
  1. TimeOfDay a,
  2. TimeOfDay b
)

Implementation

static bool timeOfDayIsBefore(TimeOfDay a, TimeOfDay b) {
  if (a.hour == b.hour) {
    if (a.minute < b.minute) {
      return true;
    }
    return false;
  }
  if (a.hour < b.hour) {
    return true;
  }
  return false;
}