meridian.schema.utils.time_record.convert_times_to_date_intervals

Creates a date interval for each time in times as dict values.

times Sequence of date strings in YYYY-MM-DD format, datetime.date objects, or a pandas DatetimeIndex.

Mapping that maps each time in times (string form) to the corresponding date interval.

ValueError If times has fewer than 2 elements or if the time coordinates are not regularly spaced.