Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support more date range formats in period parameter #867

Merged
merged 6 commits into from
Mar 21, 2019
Merged

Support more date range formats in period parameter #867

merged 6 commits into from
Mar 21, 2019

Conversation

LVMBDV
Copy link
Contributor

@LVMBDV LVMBDV commented Mar 21, 2019

Currently the period parameter in the read API only accepts millisecond timestamps in [1417730400000,1420149600000] format. I refactored the getPeriodObj function, deduplicated getPeriodObject(params) and added support for two more variations:

  • DD-MM-YYYY HH:mm:ss (e.g. ["06-03-2019 19:00:00", "07-03-2019 19:00:00"])
  • DD-MM-YYYY (e.g. ["06-03-2019", "07-03-2019"]) If this option is used we'll set hour as 00:00:00

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

Successfully merging this pull request may close these issues.

2 participants