Loading

FIRSTTICK

gts

The FIRSTTICK function returns the timestamp of the oldest tick of a Geo Time Series™ or, if the GTS is bucketized, the timestamp of its first bucket.

When applied to a list of GTS, FIRSTTICK will return the lowest first tick found across all Geo Time Series™.

If the GTS does not have values, Long.MAX_VALUE is pushed.

FIRSTTICK is available since version 1.0.0.

See also

Signatures

Examples

NEWGTS 100 NaN NaN NaN 10 ADDVALUE 200 NaN NaN NaN 9 ADDVALUE 300 NaN NaN NaN 8 ADDVALUE 400 NaN NaN NaN 7 ADDVALUE 500 NaN NaN NaN 6 ADDVALUE 100 NaN NaN NaN 10 ADDVALUE 200 NaN NaN NaN 9 ADDVALUE FIRSTTICK

Examples

gts = NEWGTS() ADDVALUE(gts, 100, NaN, NaN, NaN, 10) ADDVALUE(gts, 200, NaN, NaN, NaN, 9) ADDVALUE(gts, 300, NaN, NaN, NaN, 8) ADDVALUE(gts, 400, NaN, NaN, NaN, 7) ADDVALUE(gts, 500, NaN, NaN, NaN, 6) ADDVALUE(gts, 100, NaN, NaN, NaN, 10) ADDVALUE(gts, 200, NaN, NaN, NaN, 9) return FIRSTTICK(gts)