Skip to content
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

make clojure.instant, or some other string ⇔ date/time library, available (or provide examples.) #21

Closed
slippycheeze opened this issue Mar 11, 2023 · 2 comments

Comments

@slippycheeze
Copy link

example:

> cq ":docs first :faction_presence (map :updated_at) first"
"2023-03-11T03:01:11.000Z"

Easily handled by clojure.instant/read-instant-timestamp, but making that available in a cq one-liner is ... more challenging than I can manage at this hour. :)

I'd like to handle those fields as dates, so I can sensibly do things like "filter everything less than three days old" from the source material.

@markus-wa
Copy link
Owner

Thanks @slippycheeze - great suggestion! 😄

I'll look into it when I have some time (or PRs welcome of course!)

markus-wa added a commit that referenced this issue Nov 30, 2023
@markus-wa
Copy link
Owner

I've added this in the latest release 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants