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 options "quarter","bimonthly", and "half-year" to floor_date/ceiling_date [Feature request] #268

Closed
mmeierer opened this issue Oct 16, 2014 · 4 comments

Comments

@mmeierer
Copy link

@mmeierer mmeierer commented Oct 16, 2014

Add options "quarter","bimonthly", and "halfyear" to floor_date/ceiling_date.

Thus any given date is rounded up/down to the first day of the quarter, bimonthly period (Jan-Feb, Mar-Apr, May-Jun, Jul-Aug, Sep-Oct, Nov-Dec) or half-year.

@jonboiser
Copy link
Contributor

@jonboiser jonboiser commented Feb 2, 2015

I would be interested in this feature too. Has there been any discussion on how it might be implemented? Are the boundaries of quarters simply 1/1, 4/1, 7/1, 10/1? Same with bimonthly (e.g. 1/1, 3/1, 5/1 ..., 11/1)?

@ptoche
Copy link

@ptoche ptoche commented Nov 23, 2015

you know about round_date(x, "quarter") right?

@jonboiser
Copy link
Contributor

@jonboiser jonboiser commented Nov 23, 2015

I submitted the PR #303 that implemented the quarter-round/floor/ceil functionality. I believe this is still open since bimonthly, and halfyear are still unimplemented. This issue hasn't been touched in awhile, but I can look into adding those two missing pieces.

@vspinu
Copy link
Member

@vspinu vspinu commented Nov 24, 2015

I can look into adding those two missing pieces.

Yes. Please. It would be useful indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants