NestedHistoryDateTimeIterable

Methods

MethodDescription
collectCollect datetimes for each history in each nested iterable.
flattenFlatten the nested iterable of history objects into a single list of all contained datetimes.

Method Details

collect

Collect datetimes for each history in each nested iterable.

Returns

TypeDescription
list[list[list[datetime]]]UTC datetimes per nested history.

Raises

ExceptionDescription
TimeErrorIf 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

TypeDescription
list[datetime]List of UTC datetimes.

Raises

ExceptionDescription
TimeErrorIf a timestamp cannot be converted to a datetime.