-
Notifications
You must be signed in to change notification settings - Fork 442
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
Time Comparison Functions #372
Comments
I also think that the distinctions between dates, times, date strings, and unix time can easily get confusing in terms of naming conventions. For example, I think |
I think I might be able to do this by first converting the value to a unix epoch and performing the comparison that way. Not exactly what I originally intended to do, but it might be a good workaround. |
I was able to work around this using I still think that this should be included as a good utility function, but if a maintainer wants to "won't" this, feel free to close. |
|
Would be nice to have some time comparison functions.
For example, this doesn't work, and I don't see a way to do this using sprig as it stands, even though it provides some time support, albeit mostly formatting.
this fails saying these types aren't comparable, and I don't see another function that can do this.
The text was updated successfully, but these errors were encountered: