Period
kloppy.domain.Period
dataclass
Period
ATTRIBUTE | DESCRIPTION |
---|---|
id |
TYPE:
|
start_timestamp |
The UTC datetime of the kick-off or, if the absolute datetime is not available, the offset between the start of the data feed and the period's kick-off
TYPE:
|
start_time |
Same as
TYPE:
|
end_timestamp |
The UTC datetime of the final whistle or, if the absolute datetime is not available, the offset between the start of the data feed and the period's final whistle
TYPE:
|
end_time |
Same as
TYPE:
|
duration |
The length of the period.
TYPE:
|
prev_period |
Period before this period.
TYPE:
|
next_period |
Period after this period.
TYPE:
|
contains
Source code in kloppy/domain/models/time.py
set_refs
Set references to other periods