eomatch.Matchup.time_diff#
- Matchup.time_diff(collection1: str | None = None, collection2: str | None = None) float | None[source]#
Returns the time difference
collection2 - collection1in total seconds.If both arguments are
None, returnsproducts[1].start_time - products[0].start_time(useful for pairwise matchups where collection order does not matter). If either collection name is provided but not found, returnsNone.- Parameters:
collection1 – Collection name of the first product.
collection2 – Collection name of the second product.
- Returns:
Time difference in seconds, or
Noneif products are not set or a named collection is not found.