Support units in floor_date() etc #442
Closed
Comments
was looking for similar functionality for rounding dates, e.g. |
I have implemented this and added quite some tests, but would really appreciate if you guys could play with it a bit and run your own checks on corner cases. Multiple of all units excepts > floor_date(ymd("2016-08-02"), "2 days")
[1] "2016-08-01"
> floor_date(ymd("2016-08-03"), "2 days")
[1] "2016-08-03" This is consistent with how currently |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i.e.
floor_date(now(), "2 weeks")
The text was updated successfully, but these errors were encountered: