bin_end_time

Description

Returns the end time of the current bin (exclusive). Can only be used with timechart.

Return type

timestamp

Domain

This is a scalar function (calculates a single output value for a single input row.)

Categories

Usage

bin_end_time( )

Examples

timechart 10m, last_to_bin_end:min(bin_end_time() - timestamp), group_by(key)

Create a column named “last_to_bin_end” that contains the difference between the last data point in the bin and the bin’s end time.