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

#1854 enhance time:now* placeholders to calculate plus and minus from now #1856

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

thjaeckle
Copy link
Member

@thjaeckle thjaeckle commented Jan 4, 2024

  • and to optionally truncate to a unit (rounding down)

Resolves: #1854

Open:

  • documentation

… now

* and to optionally truncate to a unit (rounding down)

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
@thjaeckle thjaeckle added this to the 3.5.0 milestone Jan 4, 2024
@thjaeckle thjaeckle self-assigned this Jan 4, 2024
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
private static final String TRUNCATE_START;
private static final String TRUNCATE_END = "]";

static {
Copy link
Contributor

@alstanchev alstanchev Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a need for this static block?
Is it null sometimes when the static methods are called?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that was kinda strange. I could not declare "[" directly to a static constant.
IbtelliJ was complaining.
But when I moved the assignment into the static block, it worked..

Could also be an IDE bug.. 😕

Copy link
Contributor

@alstanchev alstanchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@thjaeckle thjaeckle merged commit 7a507f6 into master Jan 5, 2024
3 checks passed
@thjaeckle thjaeckle deleted the feature/1854-enhance-time-placeholders branch January 5, 2024 06:58
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Provide time placeholders in RQL with ability to specify plus and minus "duration"
2 participants