isSameHour method

bool isSameHour(
  1. DateTime other
)

Checks if the DateTime is in the same hour as the specified DateTime.

Implementation

bool isSameHour(DateTime other) {
  return isSame(other, unit: TimeUnit.hour);
}