pub fn as_hours(duration: &Duration) -> u64
Converts a duration into a number of hours, rounding down.