act.utils.determine_time_delta(time, default=60)[source]

Returns the most likely time step in seconds by analyzing the difference in time steps.

  • time (numpy datetime64 array) – The numpy array of date time values.

  • default (int or float) – The default number to return if unable to calculate a value.


time_delta (float) – Returns the number of seconds for the most common time step. If can’t calculate a value the default value is returned.