-
Notifications
You must be signed in to change notification settings - Fork 231
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
Provide time placeholders in RQL with ability to specify plus and minus "duration" #1854
Milestone
Comments
Additional idea: Rounding up/down to the next full Syntax could be e.g.:
Or:
Or:
|
thjaeckle
added a commit
that referenced
this issue
Jan 4, 2024
… now * and to optionally truncate to a unit (rounding down) Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
1 task
thjaeckle
added a commit
that referenced
this issue
Jan 4, 2024
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
thjaeckle
added a commit
that referenced
this issue
Jan 5, 2024
…-placeholders #1854 enhance time:now* placeholders to calculate plus and minus from now
thfries
pushed a commit
to thfries/ditto
that referenced
this issue
Jan 13, 2024
…nd minus from now * and to optionally truncate to a unit (rounding down) Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
thfries
pushed a commit
to thfries/ditto
that referenced
this issue
Jan 13, 2024
…er functionality Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, there is the
time:now
placeholder which can be used in RQL queries, e.g. like this:The currently implemented time placeholders are:
time:now
time:now_epoch_millis
It would be very useful to be able to also specify a plus and minus offset to "now":
Syntax idea:
To keep it simple, the existing placeholders could support optionally the following syntax:
Where Ditto duration is defined by implementation class
DittoDuration
.Examples:
time:now-5h
- current ISO8601 timestamp minus 5 hourstime:now_epoch_millis+2d
- current epoch timestamp plus 2 daystime:now+30s
- current ISO8601 timestamp plus 30 secondsThe text was updated successfully, but these errors were encountered: