tidyverse / lubridate

Make working with dates in R just that little bit easier
https://lubridate.tidyverse.org
GNU General Public License v3.0
724 stars 207 forks source link

ceiling_date() issue when using multi units #1162

Open mmollayi opened 4 months ago

mmollayi commented 4 months ago

I noticed strange behavior when using ceiling_date() with multi units and I'm not sure if this is intended or is a bug:

lubridate::ceiling_date(as.Date("2024-01-31"), "2 days")
#> [1] "2024-02-05"