isAfter method

bool isAfter(
  1. Solar solar
)

Implementation

bool isAfter(Solar solar) {
  if (_year > solar.getYear()) {
    return true;
  }
  if (_year < solar.getYear()) {
    return false;
  }
  if (_month > solar.getMonth()) {
    return true;
  }
  if (_month < solar.getMonth()) {
    return false;
  }
  if (_day > solar.getDay()) {
    return true;
  }
  if (_day < solar.getDay()) {
    return false;
  }
  if (_hour > solar.getHour()) {
    return true;
  }
  if (_hour < solar.getHour()) {
    return false;
  }
  if (_minute > solar.getMinute()) {
    return true;
  }
  if (_minute < solar.getMinute()) {
    return false;
  }
  return _second > solar.getSecond();
}