-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Thanks for your great lib!
One common requirement is working with dates in JSON object (e.g. jwadhams/json-logic-js#6)
It would be awesome, if this could be baked into json-logic-rs
.
Obviously, there is a lot to consider beforehand.
- Which formats should be supported?
- Which operations should be supported? (st, gt, eq)?
- Can we support different time units when comparing to date strings? (e.g. two dates are more than 18 years apart from each other, two dates are more than 3 days apart from each other, two dates are less than 24 hours apart from each other).
- Can we support dynamic values like "compare this date string to the current date: is it in the past? Is it in the future?"
Those are just some ideas off the top of my head, but I'd love to get a discussion going on how working with dates could look like in json-logic-rs
:)
Metadata
Metadata
Assignees
Labels
No labels