pub fn cast_interval_to_time<'a>(i: Interval) -> NaiveTime