GetLastElementStamp function

The GetLastElementStamp function returns the timestamp of the last element in the time series.

Syntax

GetLastElementStamp(ts   TimeSeries,
                    flag integer DEFAULT 0) 
returns lvarchar;
ts
The source time series.
flag
0 = Default. Return the timestamp of the last element, regardless of whether the element is null.
1 = Return the timestamp of the last element that has data, which is stored on the last page of the time series in a container.

Returns

The timestamp of the last element in the time series, as a DATETIME YEAR TO FRACTION(5) value.