operator < method

bool operator <(
  1. DateTime other
)

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

Implementation

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