operator <= method

bool operator <=(
  1. DateTime other
)

Checks if the current date and time is less than or equal to the given date and time.

Implementation

bool operator <=(DateTime other) => this < other || this == other;