Skip to content

NestedHistoryDateTimeIterable #

Bases: object

__iter__() #

Implement iter(self).

__len__() #

Return len(self).

__repr__() #

Return repr(self).

collect() #

Collect datetimes for each history in each nested iterable.

Returns:

Type Description
list[list[list[datetime]]]

UTC datetimes per nested history.

Raises:

Type Description
TimeError

If a timestamp cannot be converted to a datetime.

flatten() #

Flatten the nested iterable of history objects into a single list of all contained datetimes.

Returns:

Type Description
list[datetime]

List of UTC datetimes.

Raises:

Type Description
TimeError

If a timestamp cannot be converted to a datetime.