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

Projects
None yet
4 participants
@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

This comment has been minimized.

Contributor

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

This comment has been minimized.

ptoche commented Nov 23, 2015

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

@jonboiser

This comment has been minimized.

Contributor

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

This comment has been minimized.

Member

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