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.

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 interval length between each time is not consistent.