operator <= method

bool operator <=(
  1. DateTime other
)

Returns true if this occurs before or at the same moment as other.

The comparison is independent of whether the time is in UTC or in the local time zone.

Implementation

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