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

CLI: default date span? #1

Open
ljharb opened this issue Jan 22, 2020 · 3 comments
Open

CLI: default date span? #1

ljharb opened this issue Jan 22, 2020 · 3 comments

Comments

@ljharb
Copy link

ljharb commented Jan 22, 2020

I'd expect it to default to the last 24 hours; but it'd also be great to have an easy CLI option to select the last week, month, 3 months, 6 months, year, etc under, say, --duration=

Also, perhaps --start-date= and --end-date= which are mutually exclusive with --duration=.

@maddhruv
Copy link
Owner

Thanks @ljharb for raising this issue.
Can you help me with pointing to a library or way to enable duration as last week, month, 3 months etc. and get the Date back.

@maddhruv
Copy link
Owner

In 1.2.0 Added support of startDate and endDate

@ljharb
Copy link
Author

ljharb commented Jan 25, 2020

I believe momentjs supports those phrases.

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

2 participants