isSameHour method

bool isSameHour(
  1. DateTime other
)

Returns true if the date is in the same hour as other, false otherwise.

Implementation

bool isSameHour(DateTime other) =>
    year == other.year &&
    month == other.month &&
    day == other.day &&
    hour == other.hour;