operator < method

bool operator <(
  1. Gregorian other
)

less than operator

Implementation

bool operator <(Gregorian other) {
  return compareTo(other) < 0;
}