Assign the end of the search time interval to the field provided by parameter as.

The time is represented as milliseconds since January 1, 1970 (UTC). In live queries (where the search time interval is forever moving), end() is equivalent to now() — that is, the current time.

Note

The parser does not have a search interval; therefore, it does not make sense to use the end() query function here.

ParameterTypeRequiredDefault ValueDescription
as[a]stringoptional[b] _end

[a] The parameter name as can be omitted.

[b] Optional parameters use their default value unless explicitly set.

Hide omitted argument names for this function

Show omitted argument names for this function

end() Examples

Click + next to an example below to get the full details.

Assign End of Search Time Interval to Field - Example 1

Assign the end of the search time interval to a field using the end() function

Assign End of Search Time Interval to Field - Example 2

Assign the end of the search time interval to a field using the end() function in a comparison