<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google/meridian/blob/v2.2.1/meridian/data/time_coordinates.py) |

Deals with coordinate values in the time dimensions of input data.

## Classes

[`class TimeCoordinates`](https://developers.google.com/meridian/reference/api/meridian/data/time_coordinates/TimeCoordinates.md.txt): A wrapper around time coordinates in Meridian's input data.

## Functions

[`normalize_date(...)`](https://developers.google.com/meridian/reference/api/meridian/data/time_coordinates/normalize_date.md.txt): Normalizes the given date value into a `datetime.date` or `None`.

[`normalize_date_interval(...)`](https://developers.google.com/meridian/reference/api/meridian/data/time_coordinates/normalize_date_interval.md.txt): Normalizes representations of a date interval into a tuple of `date`s.

[`normalize_date_str(...)`](https://developers.google.com/meridian/reference/api/meridian/data/time_coordinates/normalize_date_str.md.txt): Extracts the 'YYYY-MM-DD' prefix string from a date coordinate or string.

[`normalize_times(...)`](https://developers.google.com/meridian/reference/api/meridian/data/time_coordinates/normalize_times.md.txt): Returns a list of normalized 'YYYY-MM-DD' date strings from times.

[`normalize_times_set(...)`](https://developers.google.com/meridian/reference/api/meridian/data/time_coordinates/normalize_times_set.md.txt): Returns a set of normalized 'YYYY-MM-DD' date strings from times.

[`validate_selected_times(...)`](https://developers.google.com/meridian/reference/api/meridian/data/time_coordinates/validate_selected_times.md.txt): Raises an error if selected_times is invalid.

[`validate_time_coordinates(...)`](https://developers.google.com/meridian/reference/api/meridian/data/time_coordinates/validate_time_coordinates.md.txt): Validates that time follows the same rules as [`InputData.time`](https://developers.google.com/meridian/reference/api/meridian/data/input_data/InputData.md.txt#time).

## Type Aliases

[`DateInterval`](https://developers.google.com/meridian/reference/api/meridian/data/time_coordinates/DateInterval.md.txt)

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| Date | Instance of `types.UnionType` |

<br />