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

Expand time parsing to handle both absolute and relative time #720

Open
carrieedwards opened this issue Oct 5, 2022 · 0 comments · May be fixed by #721
Open

Expand time parsing to handle both absolute and relative time #720

carrieedwards opened this issue Oct 5, 2022 · 0 comments · May be fixed by #721

Comments

@carrieedwards
Copy link
Collaborator

carrieedwards commented Oct 5, 2022

Is your feature request related to a problem? Please describe.
According to the Graphite web documentation, time windows passed into some functions, such as linearRegression, timeShift, and verticalLine, can be of a variety of formats, in either absolute or relative time. Some examples of formats that should be parsed correctly are:

"20091231"
"noon+yesterday"
"january+1"
"04:00_20110501"
"monday"

Currently, only interval strings (such as "1m", "3h", 7d, etc) are parsed.

Describe the solution you'd like
The time formats supported by Graphite web should be properly parsed and handled.

Additional context
Graphite web's time parsing functions can be found here.

@carrieedwards carrieedwards changed the title Improve time parsing Expand time parsing to handle both absolute and relative time Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant