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

"Year ago today" nostrscript #62

Open
jb55 opened this issue Dec 30, 2024 · 1 comment
Open

"Year ago today" nostrscript #62

jb55 opened this issue Dec 30, 2024 · 1 comment

Comments

@jb55
Copy link
Contributor

jb55 commented Dec 30, 2024

Environment inputs:

  • Current time

Simply generates the filter:

nostril query -r -k 1 \
  --since $(date +%s -d 'now - 1 year - 12 hours') \
  --until $(date +%s -d 'now - 1 year + 12 hours'))

Idea:

  • This could be considered a nostrscript filter "constraint" that could be applied to any other query.
@jb55
Copy link
Contributor Author

jb55 commented Dec 30, 2024

This doesn't technically need to be in nostrdb, maybe this makes more sense to be a higher level thing that is simply passed to nostrdb.

For everything else:

@jb55 jb55 mentioned this issue Dec 31, 2024
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

1 participant