isSameHour method

bool isSameHour(
  1. DateTime other
)

Returns true if this date is in the same hour as other.

Implementation

bool isSameHour(DateTime other) => isSameDay(other) && hour == other.hour;