isAtSameHourAs method

bool isAtSameHourAs(
  1. DateTime other
)

Returns true if other is at the same hour as this.

This means the exact hour, including year, month and day.

Does not account for timezones.

Implementation

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