isSameHourAs method

bool isSameHourAs(
  1. DateTime other
)

Checks if this DateTime occurs on the same hour as another DateTime, regardless of time zone.

Implementation

bool isSameHourAs(DateTime other) => hour == other.hour && isSameDayAs(other);