-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comparing timestamps? #357
Comments
That should work. Let me add a quick conformance test and get back to you. |
It's very possible there is a bug on my end too -- I will dig down more, now that I know that should work. |
Ah, there's no overload for timestamp from epoch: We could add one if you like. I see no reason not to support this. |
@mholt This is a bug on our side. Sorry about this. It's clearly in the |
No worries, thanks for checking! My objective is to compare timestamps. I would prefer to use |
Oh, yes, the comparisons are certainly supported. The problem is that the function declaration was added to the Go type-checker, but not the interpreter. We missed it in our conformance audit since the spec indicates that only |
@mholt I'll put together a point release once this is checked in. |
Thanks! That's fast! |
@mholt You should be all set to bump up to v0.5.1 :) Thanks for the reaching out! |
Works like a charm. Thank you very much! |
Hi, sorry for the lame question -- how can I compare timestamps using CEL + this library?
I tried
timestamp(0) == timestamp(0)
but I get false every time.Is there a reference I could read about how to do this?
The text was updated successfully, but these errors were encountered: