operator <= method

bool operator <=(
  1. DateTime other
)

Allows you to compare EDateTime with each other

Implementation

bool operator <=(DateTime other) {
  if (isBefore(other) || this == other) {
    return true;
  } else {
    return false;
  }
}