Returns difference between two dates in hours
int differenceInHours(DateTime other) { return DateTime(year, month, day) .difference(DateTime(other.year, other.month, other.day)) .inHours; }