Skip to content

Working with dates #30

@manuschillerdev

Description

@manuschillerdev

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions