differenceInHours method

int differenceInHours(
  1. DateTime other
)

Difference from another date in hours

Implementation

int differenceInHours(DateTime other) => difference(other).inHours.abs();