differenceInHours method

int differenceInHours(
  1. DateTime other
)

Difference in hours between this date and other

Implementation

int differenceInHours(DateTime other) => diff(other).inHours;