isAtSameHourAs method

bool isAtSameHourAs(
  1. DateTime other
)

Checks if this DateTime is in the same hour, day, month, and year as other.

Implementation

bool isAtSameHourAs(DateTime other) =>
    isAtSameDayAs(other) && hour == other.hour;