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