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

add Quarter period #35519

Closed
wants to merge 7 commits into from
Closed

add Quarter period #35519

wants to merge 7 commits into from

Conversation

matthieugomez
Copy link
Contributor

@matthieugomez matthieugomez commented Apr 18, 2020

Similarly to the fact that a Week corresponds to seven days, a Quarter corresponds to three months. @quinnj

#35517

@matthieugomez
Copy link
Contributor Author

matthieugomez commented Apr 20, 2020

I have not touched the quarterofyear function but maybe it should be renamed to quarter.

@JeffBezanson JeffBezanson added the dates Dates, times, and the Dates stdlib module label Apr 20, 2020
Copy link
Member

@quinnj quinnj left a comment

Choose a reason for hiding this comment

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

LGTM; no support for parsing/formatting, but it's not a very common use-case anyway.

@matthieugomez
Copy link
Contributor Author

matthieugomez commented Apr 24, 2020

One last point. For now, I don't export quarter: this is a bit weird — accessor functions are exported for all other Periods . The reason I don't do this is that there is already a function, quarterofyear, that does exactly the same thing.

So, should I still export quarter? If yes, should I deprecate quarterfoyear?

@quinnj
Copy link
Member

quinnj commented Jun 12, 2020

Looks like this needs a rebase and can be merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dates Dates, times, and the Dates stdlib module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants