hourDifference method

int hourDifference(
  1. Time other
)

Returns the difference in whole hours between this time and other.

Implementation

int hourDifference(Time other) => difference(other).inHours;