weldx.util.to_pandas_time_index

weldx.util.to_pandas_time_index(time)

Convert a time variable to the corresponding pandas time index type.

Parameters

time (Union[Quantity, ndarray, TimedeltaIndex, DatetimeIndex, DataArray, LocalCoordinateSystem]) – Variable that should be converted.

Returns

Time union of all input objects

Return type

Union[pandas.TimedeltaIndex, pandas.DatetimeIndex]