pydeltasnow.utils.continuous_timedeltas

pydeltasnow.utils.continuous_timedeltas(dr)[source]

Check for continuity on dates

Parameters

dr (1D numpy.ndarray with numpy.datetime64 dtype) – Input date range.

Returns

  • continuous (bool) – Whether the datetime array is evenly spaced.

  • resolution (float) – The time resolution in hours.