weldx.time.Time.as_data_array#

Time.as_data_array(timedelta_base=True)#

Return the time data as a xarray.DataArray coordinate.

By default the format is timedelta values with reference time as attribute.

Parameters:

timedelta_base (bool) – If true (the default) the values of the xarray will always be timedeltas.

Return type:

DataArray