The ts_del_elem() function

The ts_del_elem() function deletes an element from a time series at a given timepoint.

Syntax

ts_timeseries *
ts_del_elem(ts_tsdesc    *tsdesc, 
             mi_datetime  *tstamp)
tsdesc
The time series descriptor returned by ts_open().
tstamp
The timepoint from which to delete the element.

Description

If there is no element at the timepoint, no error is raised, and no change is made to the time series. It is an error to delete a hidden element.

The equivalent SQL function is DelElem.

Returns

The original time series minus the element deleted, if there was one.