-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support units in floor_date() etc #442
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 |
i.e.
floor_date(now(), "2 weeks")
The text was updated successfully, but these errors were encountered: