The ts_put_last_elem() function

The ts_put_last_elem() function puts new elements at the end of an existing regular time series.

Syntax

ts_timeseries *
ts_put_last_elem(ts_tsdesc *tsdesc, 
                  ts_tselem tselem)
tsdesc
The time series to be updated.
tselem
The element to add; any time stamp in the element is ignored.

Returns

The original time series with the element added. If the time series is irregular, an error is raised.