Timestamp now() function #339
Replies: 1 comment
-
The CEL team prefers not to introduce a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to write an expression in which I check the time difference between the data I get in form of a Timestamp and the current moment.
The expression would look like:
my_data_timestamp - time.now() < duration('1s')
Is it possible to write an expression like that in CEL? I could not find a CEL function that returns the current timestamp value, but could it be done by writing a custom function? I am using CEL with Java.
Beta Was this translation helpful? Give feedback.
All reactions