operator <= method

bool operator <=(
  1. DateTime other
)

Whether this DateTime is at or before other.

Implementation

bool operator <=(DateTime other) => isBefore(other) || isAtSameMomentAs(other);