hoursUntil method

int hoursUntil(
  1. DateTime other
)

Hours until other. If other is in the past, the result will be negative.

Implementation

int hoursUntil(DateTime other) => difference(other).inHours;