get_times

ssapy.utils.get_times(duration: Tuple[int, str], freq: Tuple[int, str], t0: str | Time = '2025-01-01') ndarray[source][source]

Calculate a list of times spaced equally apart over a specified duration.

Parameters:
  • duration (tuple) – A tuple containing the length of time and the unit (e.g., (30, ‘day’)).

  • freq (tuple) – A tuple containing the frequency value and its unit (e.g., (1, ‘hr’)).

  • t0 (str or Time, optional) – The starting time. Default is “2025-01-01”.

Returns:

A list of times spaced equally apart over the specified duration.

Return type:

np.ndarray