Loading

LASTTICK

gts

The LASTTICK function returns the newest tick of a Geo Time Series™ or, if the GTS is bucketized, the timestamp of its last bucket.

When applied to a list of GTS, LASTTICK will return the greatest last tick found across all Geo Time Series™.

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

LASTTICK 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 LASTTICK

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 LASTTICK(gts)