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

new option start-month (or: allow incomplete date YYYY-MM) #61

Closed
thorade opened this issue Nov 7, 2018 · 3 comments · Fixed by #71
Closed

new option start-month (or: allow incomplete date YYYY-MM) #61

thorade opened this issue Nov 7, 2018 · 3 comments · Fixed by #71

Comments

@thorade
Copy link

thorade commented Nov 7, 2018

This is possibly related to #47 as well as #48.

I would like to have statistics for each month, and this is achievable throught --start-date and --end-date options, but for convenience it would be nice to be able to just specify the month like 2018-10.

This could be either done using a new option --start-month or by allowing a start-date without the DD, that is automatically extended to first day of the month when used for start-date and to last day of the month when used as end-date.
For both ways, start-month or incomplete start-date, the end-month or end-date should be automatically set to the (last day of the) same month by default, but changeable by the user.

Does this make sense?

@hugovk
Copy link
Collaborator

hugovk commented Nov 7, 2018

by allowing a start-date without the DD, that is automatically extended to first day of the month when used for start-date and to last day of the month when used as end-date.

Sounds useful to me.

For ... incomplete start-date, the ... end-date should be automatically set to the (last day of the) same month by default, but changeable by the user.

So if start-date is 2018-10, end-date would be set to 2018-10/2018-10-31?

And in other cases, if start-date is 2018-10-01 or -5, end-date is left to the default?

@thorade
Copy link
Author

thorade commented Nov 7, 2018

Yes, I think you have it exactly right. So, the end-date default would depend on the start-date format. Not sure whether that is nice.

@hugovk
Copy link
Collaborator

hugovk commented Mar 18, 2019

Please see PR #71 which lets you do this:

$ pypinfo --test --start-date 2018-04-01 --end-date 2018-04-30 setuptools
$ pypinfo --test --start-date 2018-04 --end-date 2018-04 setuptools
$ pypinfo --test --month 2018-04 setuptools

suv27 pushed a commit to suv27/pypinfo that referenced this issue Oct 5, 2019
Modificando link para o site dos dados da ufrn
@hugovk hugovk closed this as completed in #71 Oct 7, 2019
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

Successfully merging a pull request may close this issue.

2 participants