Return the time elapsed since a past date

Syntax

AGE …float-expr…

Typing

float

Description

AGE D is equivalent to NOW - D

Warning: Parents of a function using AGE can not be archived, as the AGE function is not deterministic. For better results, use AGE as early as possible in the processing stream.

Examples

expression evaluates to
AGE(NOW - 3s) 3
AGE(0) 1645380250.123524
AGE(NOW) 0

See Also

Return the current time as a UNIX timestamp