fn time_range_base_time(min_time: i64, span: i64) -> Option<i64>