GetFirstElementStamp function

The GetFirstElementStamp function returns the timestamp of the first element in the time series.

Syntax

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

Returns

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