Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport 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")