lair.clock.time_difference_matrix#

lair.clock.time_difference_matrix(times, absolute=True)[source]#

Calculate the time differences between each pair of times.

Parameters:
  • times (list[dt.datetime]) – The list of times to calculate the differences between.

  • absolute (bool, optional) – If True, return the absolute differences. Default is True.

Returns:

np.ndarray – The matrix of time differences.

Return type:

ndarray