Skip to content

HistoryIterable #

Bases: object

dt property #

Access history items as UTC datetimes.

Returns:

Type Description
HistoryDateTimeIterable

Iterable of HistoryDateTime objects, one for each item.

event_id property #

Access event ids of history items.

Returns:

Type Description
HistoryEventIdIterable

Iterable of HistoryEventId objects, one for each item.

intervals property #

Access intervals between consecutive timestamps in milliseconds.

Returns:

Type Description
IntervalsIterable

Iterable of Intervals objects, one for each item.

t property #

Access history items as timestamps (milliseconds since the Unix epoch).

Returns:

Type Description
HistoryTimestampIterable

Iterable of HistoryTimestamp objects, one for each item.

__iter__() #

Implement iter(self).

__len__() #

Return len(self).

__repr__() #

Return repr(self).

collect() #

Collect time entries from each history in the iterable.

Returns:

Type Description
list[list[EventTime]]

Collected entries per history.

flatten() #

Flatten the iterable of history objects into a single list of all contained time entries.

Returns:

Type Description
list[EventTime]

List of time entries.