You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One solution would be to define boundary for all units being uniformly 00 not 00 for some (hour, minute, second) and 01 for others (day, month). In that case yyyy-04-01 will be ceiled to yyyy-05-01.
This would mean that day and month don't have a boundary which implies at least two bad things. First one being that floor(ceiling(...) is not the same as floor, second is that ceiling(ceiling(...)) for a date jumps over two months. This is a major change and might break current code in quite unexpected ways.
So I am thinking to add a new argument to ceiling_date. Maybe ceiling_on_1 or no_boundary? Other ideas? If, TRUE, ceiling behaves as you propose. If FALSE, it's the current behavior. This might be a global option which you can set with options once per session.