int inHours

Returns the number of whole hours spanned by this Duration.

The returned value can be greater than 23.

Source

int get inHours => _duration ~/ Duration.MICROSECONDS_PER_HOUR;